diff --git a/docs/sso/oauth2.md b/docs/sso/oauth2.md index 91d82d029..3ca1e95a4 100644 --- a/docs/sso/oauth2.md +++ b/docs/sso/oauth2.md @@ -427,3 +427,19 @@ OAuth2.0错误响应中的错误码定义如下表所示: + +

OAuth2客户端集成

+ +本文使用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 \ No newline at end of file diff --git a/docs/sso/oidc.md b/docs/sso/oidc.md index 136e20f6d..e485e1fc6 100644 --- a/docs/sso/oidc.md +++ b/docs/sso/oidc.md @@ -88,4 +88,21 @@ OAuth认证接口属性列表 -其他请参照OAuth2 \ No newline at end of file +其他请参照OAuth2 + + +

OAuth2客户端集成

+ +本文使用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 \ No newline at end of file