shimingxy 5 years ago
parent
commit
7e6f2265c3
2 changed files with 34 additions and 1 deletions
  1. 16 0
      docs/sso/oauth2.md
  2. 18 1
      docs/sso/oidc.md

+ 16 - 0
docs/sso/oauth2.md

@@ -427,3 +427,19 @@ OAuth2.0错误响应中的错误码定义如下表所示:
 		</tr>
 </tbody>
  </table>
+ 
+<h2>OAuth2客户端集成</h2>
+
+本文使用JAVA WEB程序为例
+
+jar包依赖如下
+
+https://github.com/shimingxy/MaxKey-Demo/tree/master/maxkey-demo-oauth/lib
+
+认证跳转
+
+https://github.com/shimingxy/MaxKey-Demo/blob/master/maxkey-demo-oauth/src/main/webapp/oauth20index.jsp
+
+获取令牌及用户信息
+
+https://github.com/shimingxy/MaxKey-Demo/blob/master/maxkey-demo-oauth/src/main/webapp/oauth20callback.jsp

+ 18 - 1
docs/sso/oidc.md

@@ -88,4 +88,21 @@ OAuth认证接口属性列表
   </tr>
  </table> 	
 
-其他请参照OAuth2
+其他请参照OAuth2
+
+
+<h2>OAuth2客户端集成</h2>
+
+本文使用JAVA WEB程序为例
+
+jar包依赖如下
+
+https://github.com/shimingxy/MaxKey-Demo/tree/master/maxkey-demo-oauth/lib
+
+认证跳转
+
+https://github.com/shimingxy/MaxKey-Demo/blob/master/maxkey-demo-oauth/src/main/webapp/oauth20index.jsp
+
+获取令牌和用户信息及验证签名
+
+https://github.com/shimingxy/MaxKey-Demo/blob/master/maxkey-demo-oauth/src/main/webapp/oidc10callback.jsp