|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
object |
||
| clientId |
string |
OAuth2 客户端 ID |
my-client-id |
| clientSecret |
string |
OAuth2 客户端密钥(存储时 AES 加密) |
my-client-secret |
| scopes |
string |
OAuth2 授权范围(空格分隔) |
openid profile email |
| issuer |
string |
OIDC 签发者 URL |
https://idp.example.com |
| authorizationEndpoint |
string |
OAuth2 授权端点 URL |
https://idp.example.com/oauth2/authorize |
| tokenEndpoint |
string |
OAuth2 Token 端点 URL |
https://idp.example.com/oauth2/token |
| userInfoEndpoint |
string |
OIDC UserInfo 端点 URL |
https://idp.example.com/userinfo |
| jwkSetUri |
string |
JWKS 公钥集 URI(用于 Token 验签) |
https://idp.example.com/.well-known/jwks.json |
| redirectUri |
string |
OAuth2 回调地址 |
https://gateway.example.com/callback |
该文章对您有帮助吗?