Pass role ARN for OIDC providers to console (#15862)

This commit is contained in:
Aditya Manthramurthy
2022-10-15 12:57:03 -07:00
committed by GitHub
parent 328d660106
commit 85fc7cea97
4 changed files with 25 additions and 18 deletions

View File

@@ -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