|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
object |
||
| provider |
string |
OIDC 提供商名称 |
阿里云IDaaS |
| name |
string |
OIDC 配置名称 |
my-oidc-config |
| logoUrl |
string |
提供商 Logo URL |
https://example.com/logo.png |
| enabled |
boolean |
是否启用该 OIDC 配置 |
true |
| grantType |
string |
授权类型 |
authorization_code |
| authCodeConfig |
object |
OAuth2 Authorization Code 配置 |
|
| clientId |
string |
OAuth2 客户端 ID |
my-client-id |
| clientSecret |
string |
OAuth2 客户端密钥 |
my-client-secret |
| scopes |
string |
OAuth2 授权范围 |
openid profile email |
| issuer |
string |
OIDC 签发者 URL |
https://idaas.example.com |
| authorizationEndpoint |
string |
授权端点 URL |
https://idaas.example.com/oauth2/authorize |
| tokenEndpoint |
string |
Token 端点 URL |
https://idaas.example.com/oauth2/token |
| userInfoEndpoint |
string |
UserInfo 端点 URL |
https://idaas.example.com/userinfo |
| jwkSetUri |
string |
JWKS 公钥集 URI |
https://idaas.example.com/.well-known/jwks.json |
| redirectUri |
string |
OAuth2 回调地址 |
https://gateway.example.com/callback |
| identityMapping |
object |
身份字段映射配置 |
|
| userIdField |
string |
用户 ID 对应的身份字段名 |
sub |
| userNameField |
string |
用户名对应的身份字段名 |
name |
| emailField |
string |
邮箱对应的身份字段名 |
|
| customFields |
object |
自定义字段映射 |
|
|
string |
自定义字段映射 |
{"department":"dept","role":"role"} |
该文章对您有帮助吗?