mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 01:18:27 +08:00
Update oauth2.md
This commit is contained in:
parent
29beae028c
commit
095b0e91b9
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
1.引导需要授权的用户到如下地址:
|
1.引导需要授权的用户到如下地址:
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint">
|
||||||
https://sso.maxkey.org/maxkey/oauth/v20/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_REGISTERED_REDIRECT_URI </pre>
|
https://sso.maxkey.org/maxkey/oauth/v20/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_REGISTERED_REDIRECT_URI
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
2.页面跳转至
|
2.页面跳转至
|
||||||
@ -20,7 +20,7 @@ YOUR_REGISTERED_REDIRECT_URI/?code=CODEsss
|
|||||||
|
|
||||||
3. 换取Access Token
|
3. 换取Access Token
|
||||||
<pre class="prettyprint">
|
<pre class="prettyprint">
|
||||||
https://sso.maxkey.org/maxkey/oauth/v20/token?client_id=YOUR_CLIENT_ID&client_secret=YOUR _SECRET&grant_type=authorization_code&redirect_uri=YOUR_REGISTERED_REDIRECT_URI&code=CODE</pre>
|
https://sso.maxkey.org/maxkey/oauth/v20/token?client_id=YOUR_CLIENT_ID&client_secret=YOUR _SECRET&grant_type=authorization_code&redirect_uri=YOUR_REGISTERED_REDIRECT_URI&code=CODE
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
返回值
|
返回值
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user