mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Pass role ARN for OIDC providers to console (#15862)
This commit is contained in:
committed by
GitHub
parent
328d660106
commit
85fc7cea97
@@ -94,6 +94,14 @@ func (p *providerCfg) initializeProvider(cfgGet func(string) string, transport h
|
||||
}
|
||||
}
|
||||
|
||||
// GetRoleArn returns the role ARN.
|
||||
func (p *providerCfg) GetRoleArn() string {
|
||||
if p.RolePolicy == "" {
|
||||
return ""
|
||||
}
|
||||
return p.roleArn.String()
|
||||
}
|
||||
|
||||
// UserInfo returns claims for authenticated user from userInfo endpoint.
|
||||
//
|
||||
// Some OIDC implementations such as GitLab do not support
|
||||
|
||||
Reference in New Issue
Block a user