diff --git a/appendix/faq/faq.html b/appendix/faq/faq.html index b06e4d51214f87d1e93f9d7b13dbc2ace7506de0..1638bc69bc3589d6568a12d28772e57fd203334c 100644 --- a/appendix/faq/faq.html +++ b/appendix/faq/faq.html @@ -1128,7 +1128,7 @@ diff --git a/appendix/global-error-code.html b/appendix/global-error-code.html index 7de0ea1d5cf52e3e79d17a8963e2769273fe9dac..2ea90732c8fc16ff756d723471c7b4badb61b333 100644 --- a/appendix/global-error-code.html +++ b/appendix/global-error-code.html @@ -1155,7 +1155,7 @@ diff --git a/appendix/interface-performance.html b/appendix/interface-performance.html index 2241283de041a66178eec7176439136b94c76351..0a6ac027f9702c8bcd0c1e93092006e5cfbc1340 100644 --- a/appendix/interface-performance.html +++ b/appendix/interface-performance.html @@ -1159,7 +1159,7 @@ diff --git a/application-register.html b/application-register.html index bdb1dd92844dff9c159b6b6ae416d03194dcd549..09e6a1c6e7d9a71bfbee604a3b62eb12d77afab9 100644 --- a/application-register.html +++ b/application-register.html @@ -1132,7 +1132,7 @@ diff --git a/faceid/deployment/deployment.html b/faceid/deployment/deployment.html index 87196cc917de903ba2f6ae33d4ff32cce9c917f6..92edde767ee6e00d4d060fde01ee463316263dd5 100644 --- a/faceid/deployment/deployment.html +++ b/faceid/deployment/deployment.html @@ -1594,7 +1594,7 @@ kubectl create -f /opt/kad/workspace/ruijie-sourceid/yaml/wsoauth/wsoauth.yml diff --git a/faceid/faq/faq.html b/faceid/faq/faq.html index 4899611c16b563bd3a581cdbc44acb510786b857..9fa5e45dce2e6dca6863aa4db7373f3df4fce2ac 100644 --- a/faceid/faq/faq.html +++ b/faceid/faq/faq.html @@ -1128,7 +1128,7 @@ diff --git a/faceid/introduction/index.html b/faceid/introduction/index.html index 7b1186f73a263ae195a71e9e48380627d928feab..a9b1875480726075455d52fcf9f56e461e0804bf 100644 --- a/faceid/introduction/index.html +++ b/faceid/introduction/index.html @@ -1162,7 +1162,7 @@ diff --git a/faceid/manufacturer/interface/application.html b/faceid/manufacturer/interface/application.html index 820efa12eaf1f25362427aa9ac711503c968287d..6d847b5af7c224d269f91e32071427b141a4e262 100644 --- a/faceid/manufacturer/interface/application.html +++ b/faceid/manufacturer/interface/application.html @@ -1241,7 +1241,7 @@ diff --git a/faceid/manufacturer/interface/manufacture.html b/faceid/manufacturer/interface/manufacture.html index 02129cda79797cf21dbc002cdb81e1847a4328b4..44ec9fb34a5d0005aa4541b82cb0b700fcad40f0 100644 --- a/faceid/manufacturer/interface/manufacture.html +++ b/faceid/manufacturer/interface/manufacture.html @@ -1848,7 +1848,7 @@ diff --git a/faceid/public/interface/face-external-api.html b/faceid/public/interface/face-external-api.html index 990b8db1aba4b9834c1c15ad2f9112e4b1bd1292..a1d6dcea2a751cdabce787be6c38129cf17607c3 100644 --- a/faceid/public/interface/face-external-api.html +++ b/faceid/public/interface/face-external-api.html @@ -2205,7 +2205,7 @@ diff --git a/get-JWT.html b/get-JWT.html index 736462e41b0acad8b91e98de5ba8c416863eb8ed..27c8b7773c8e89eaa1958b58c1122890f06c99f8 100644 --- a/get-JWT.html +++ b/get-JWT.html @@ -1185,7 +1185,7 @@ diff --git a/get-access-token.html b/get-access-token.html index f52e78109c1b448e0180167741f4c126efdfd583..16e78746dc41e755561a02836ce1452dedbcd84f 100644 --- a/get-access-token.html +++ b/get-access-token.html @@ -1208,7 +1208,7 @@ diff --git a/group/develop/node-management.html b/group/develop/node-management.html index 8a6e72c47145b37d315e8fad5d7f06a4b1eb0e6f..38280bc270ec2d68f48ee4417c6da3f6b4f65716 100644 --- a/group/develop/node-management.html +++ b/group/develop/node-management.html @@ -1456,7 +1456,7 @@ diff --git a/group/develop/personnel-management.html b/group/develop/personnel-management.html index be16b6131629c0d56809468c8750163a4d9836ec..53b5ba37d9ffcda6e0ef0cc4833a33363b2b1d4e 100644 --- a/group/develop/personnel-management.html +++ b/group/develop/personnel-management.html @@ -1583,7 +1583,7 @@ SID调用“创建成员”、 diff --git a/group/develop/safety-verification.html b/group/develop/safety-verification.html index 77f59f9289cf6593e3cad2daad775c36764fc413..342ceaa6cda856ecf874d19fe6a5dfa24a60ed12 100644 --- a/group/develop/safety-verification.html +++ b/group/develop/safety-verification.html @@ -1179,7 +1179,7 @@ diff --git a/group/faq/index.html b/group/faq/index.html index 73c4b5a733a1ae4a6f318eb4c0d9e46b2d5c44ed..e5ef9c8857a49111772838ac505b3d0bc29e071b 100644 --- a/group/faq/index.html +++ b/group/faq/index.html @@ -1136,7 +1136,7 @@ diff --git a/group/introduction/index.html b/group/introduction/index.html index 0db6f722ce34634cbae66debf6439725ceae46cf..f5d1fe664d92881486045592b4ab69690f7fb3bf 100644 --- a/group/introduction/index.html +++ b/group/introduction/index.html @@ -1149,7 +1149,7 @@ diff --git a/group/procedure/create-push-task.html b/group/procedure/create-push-task.html index 6d58bae9c1ccd49ecfc68112f60f2b0ea52371f8..172ffccfb0a26ba5d34389584d9548ffee09ffda 100644 --- a/group/procedure/create-push-task.html +++ b/group/procedure/create-push-task.html @@ -1143,7 +1143,7 @@ diff --git a/group/procedure/define-group.html b/group/procedure/define-group.html index 2ddad986db3a4a26379a9032cab064c92a1eadd1..9cd1150b1c2ff0419550088e814209f858e113c1 100644 --- a/group/procedure/define-group.html +++ b/group/procedure/define-group.html @@ -1155,7 +1155,7 @@ diff --git a/group/procedure/push-task.html b/group/procedure/push-task.html index 443ebd2f9246be13128f30b2a168e17169b99910..63398c969f7b6010456455fb40d34290668ec67f 100644 --- a/group/procedure/push-task.html +++ b/group/procedure/push-task.html @@ -1164,7 +1164,7 @@ diff --git a/index.html b/index.html index 84f2d5e7b59b836eee1e59b05cf07dd70329a90c..65d42ffb1c3b3a7aebb9576a29deaaf2116669b1 100644 --- a/index.html +++ b/index.html @@ -1136,7 +1136,7 @@ diff --git a/linkid/authentication/faq/faq.html b/linkid/authentication/faq/faq.html index e612c460bd740ef605d1389d1935997074e3b933..9bf98a1b7d5de735447d306abed5c18aa7e5f676 100644 --- a/linkid/authentication/faq/faq.html +++ b/linkid/authentication/faq/faq.html @@ -1142,7 +1142,7 @@ diff --git a/linkid/authentication/introduction/application-free-certification-README.html b/linkid/authentication/introduction/application-free-certification-README.html index ff936866af0ca838a4172f60625def5c84bc853e..4d568a1201461a5a6802aaa81a7b40856f215320 100644 --- a/linkid/authentication/introduction/application-free-certification-README.html +++ b/linkid/authentication/introduction/application-free-certification-README.html @@ -1092,7 +1092,7 @@
@@ -1103,13 +1103,13 @@流程简介:
token换用户信息
-将sso域名注册到APP应用中,并且提供appKey和secret
-见接口文档 @@ -1119,13 +1119,13 @@
通过OAuth验证接口获取成员身份会有一定的时间开销。对于频繁获取成员身份的场景,建议采用如下方案:
@@ -1103,7 +1102,7 @@注:https方式类似。
请求参数:
请求示例: - https://xxx.com.cn/oauth/authorize?client_id=[AppKey]&redirect_uri=[urlEncode(应用回调地址)]&response_type=code&scope=base_api&state=xxx + https://xxx.com.cn/oauth/authorize?client_id=xxx&redirect_uri=xxx&response_type=code&scope=base_api&state=xxx
参数说明:
@@ -1118,7 +1117,7 @@
client_id 是 -应用唯一标识,即应用注册时获得的 App Key +应用唯一标识,即应用注册时获得的应用id redirect_uri @@ -1128,22 +1127,22 @@response_type 是 -返回类型,请填写 code 。 +返回类型,请填写 code scope 是 -作用域,与注册时匹配。 base_api 可以访问基础API且支持静默模式不弹出授权提醒; all 可以使用所有高级API。通过开放平台创建的应用默认授予 base_api 作用域,可申请 all 权限;在微哨管理平台创建的应用同时授予 base_api 和 all 权限。 +作用域,与注册时匹配。 base_api 可以访问基础API且支持静默模式不弹出授权提醒;
all 可以使用所有高级API。通过开放平台创建的应用默认授予 base_api 作用域,可申请 all 权限;
在微哨管理平台创建的应用同时授予 base_api 和 all 权限state 是 -重定向后会带上 state 参数。开发者可以用此参数验证请求有效性,或记录用户请求授权页前的位置。同时此参数可用于防止跨站请求伪造(CSRF)攻击 +重定向后会带上 state 参数。开发者可以用此参数验证请求有效性,或记录用户请求授权页前的位置。
同时此参数可用于防止跨站请求伪造(CSRF)攻击返回结果: -因为应用嵌入在APP内部,此时APP应该是登录状态,在一系列校验好,会重定向到redirect_uri并且带着code和state
+因为应用嵌入在APP内部,此时APP应该是登录状态,在一系列校验后,会重定向到redirect_uri并且带着code和state@@ -1161,18 +1160,19 @@
示例: https://redirect_uri?code=xxxxx&state=xxx
下发的code - -code +state 请求code时带的参数 二、通过 code 换取网页授权 AccessToken
+二、通过 code 换取网页授权token
请求⽅式: POST(HTTPS或HTTP)
请求地址: http://{server}/oauth/token
注:https方式类似。
请求参数:
-示例: -grant_type=authorization_code&client_id=[AppKey]&client_secret=[AppSecret]&code=[code]&redirect_uri=[urlEncode(应用回调地址)] +
注:请求数据类型为Form表单(application/x-www-form-urlencoded)
+Form表单示例: +grant_type=authorization_code&client_id=xxx&client_secret=xxx&code=xxx&redirect_uri=xxx
参数说明:
@@ -1187,22 +1187,22 @@ grant_type=authorization_code&client_id=[AppKey]&client_secret=[AppSecre
grant_type 是 -固定值 authorization_code。 +固定值 authorization_code client_id 是 -应用唯一标识,即应用注册时获得的 App Key。 +应用唯一标识,即应用注册时获得的 应用id client_secret 是 -应用密钥,即应用注册时获得的 App Secret。 +应用的秘钥,即应用注册时获得的应用秘钥 code 是 -授权票据,即第一步应用回调地址获得的 code 参数值 +授权码,即第一步应用回调地址获得的 code 参数值 + redirect_uri @@ -1241,6 +1241,14 @@ grant_type=authorization_code&client_id=[AppKey]&client_secret=[AppSecrescope 作用域 + +refresh_token +刷新令牌 ++ token_type +令牌类型 +三、获取用户信息
@@ -1248,8 +1256,29 @@ grant_type=authorization_code&client_id=[AppKey]&client_secret=[AppSecre获取用户信息。
请求⽅式: GET(HTTPS或HTTP)
-请求地址: http://{server}/profile?access_token=[AccessToken]
+请求地址: http://{server}/profile
注:https方式类似。
+请求参数:
+示例:
+http://xxx.com.cn/profile?access_token=xxx
+
+参数说明:
+参数 | +是否必须 | +说明 | +
---|---|---|
access_token | +是 | +令牌 | +
返回结果:
{
"name": "张三",
@@ -1276,7 +1305,7 @@ grant_type=authorization_code&client_id=[AppKey]&client_secret=[AppSecre