Update oauth2.md

This commit is contained in:
shimingxy 2020-03-12 11:13:22 +08:00
parent 29beae028c
commit 095b0e91b9

View File

@ -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>
返回值 返回值