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

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

No files matched your search

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