SylviaBABY commented on code in PR #6895: URL: https://github.com/apache/apisix/pull/6895#discussion_r854934470
########## docs/zh/latest/plugins/openid-connect.md: ########## @@ -87,26 +107,29 @@ curl http://127.0.0.1:9080/apisix/admin/routes/5 -H 'X-API-KEY: edd1c9f034335f13 }' ``` -以下命令可用于访问新路由。 +以下命令可用于访问新路由: -```bash -curl -i -X GET http://127.0.0.1:9080/get -H "Host: httpbin.org" -H "Authorization: Bearer {replace_jwt_token}" +```shell +curl -i -X GET http://127.0.0.1:9080/get \ +-H "Host: httpbin.org" -H "Authorization: Bearer {replace_jwt_token}" ``` -当 Oauth 2 授权服务器返回结果里面除了 token 之外还有过期时间,token 将在 APISIX 中缓存直至过期。 -具体细节参见: +在此示例中,插件强制在请求标头中设置访问令牌和 Userinfo 对象。 -1. [lua-resty-openidc](https://github.com/zmartzone/lua-resty-openidc) 的文档和代码。 +当 Oauth 2 授权服务器返回结果里面除了 token 之外还有过期时间,token 将在 APISIX 中缓存直至过期。有关更多详细信息,请参考: Review Comment: ```suggestion 当 Oauth 2 授权服务器返回结果里除了令牌之外还有过期时间,其中令牌将在 APISIX 中缓存直至过期。有关更多详细信息,请参考: ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org