From 7e6f2265c32a836ea025ccbf702041c325279df0 Mon Sep 17 00:00:00 2001 From: shimingxy Date: Thu, 12 Mar 2020 14:53:12 +0800 Subject: [PATCH] u --- docs/sso/oauth2.md | 16 ++++++++++++++++ docs/sso/oidc.md | 19 ++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/docs/sso/oauth2.md b/docs/sso/oauth2.md index 91d82d02..3ca1e95a 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 136e20f6..e485e1fc 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 -- GitLab