Update oauth2.md

上级 daf2b0c9
...@@ -198,7 +198,7 @@ tokencode= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7& ...@@ -198,7 +198,7 @@ tokencode= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7&
client_id=QPKKKSADFUP876& client_id=QPKKKSADFUP876&
client_secret={client_secret}& client_secret={client_secret}&
redirect_uri=http://app.maxkey.org/app/callback redirect_uri=http://app.maxkey.org/app/callback
</pre></code> </code></pre>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -224,7 +224,7 @@ redirect_uri=http://app.maxkey.org/app/callback ...@@ -224,7 +224,7 @@ redirect_uri=http://app.maxkey.org/app/callback
access_token : "token_id" access_token : "token_id"
} }
</pre></code> </code></pre>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -263,7 +263,7 @@ POST /oauth/ userinfo HTTP/1.1 ...@@ -263,7 +263,7 @@ POST /oauth/ userinfo HTTP/1.1
Host: sso.maxkey.org/openapi Host: sso.maxkey.org/openapi
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
access_token= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7 access_token= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7
</pre></code> </code></pre>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -278,7 +278,7 @@ access_token= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7 ...@@ -278,7 +278,7 @@ access_token= PQ7q7W91a-oMsCeLvIaQm6bTrgtp7
{ {
userid : “zhangs”, userid : “zhangs”,
}</pre></code> }</code></pre>
<br/> <br/>
zhangs是认证的用户ID zhangs是认证的用户ID
</td> </td>
...@@ -325,7 +325,7 @@ error_description: 错误的描述信息 ...@@ -325,7 +325,7 @@ error_description: 错误的描述信息
"error":"unsupported_response_type", "error":"unsupported_response_type",
"error_description":"不支持的 ResponseType." "error_description":"不支持的 ResponseType."
} }
</pre></code> </code></pre>
OAuth2.0错误响应中的错误码定义如下表所示: OAuth2.0错误响应中的错误码定义如下表所示:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册