security oauth2 client client-id CLIENT client-secret SECRET authorized-grant-types authorization_coderefresh_tokenpassword access-token-validity-seconds 18000 resource
这段yml配置主要是用来配置OAuth2认证的客户端和资源服务器的。具体来说:
- client-id和client-secret是客户端的唯一标识符和秘钥;
- authorized-grant-types指定该客户端可以使用的授权方式,包括authorization_code、refresh_token和password;
- access-token-validity-seconds指定访问令牌的有效期,单位为秒;
- token-info-uri指定资源服务器用来验证访问令牌的端点URL。
原文地址: https://www.cveoy.top/t/topic/ftde 著作权归作者所有。请勿转载和采集!