Remove globalOpenIDConfig (#16708)

This commit is contained in:
Aditya Manthramurthy
2023-02-25 21:01:37 -08:00
committed by GitHub
parent b49b39e99d
commit 9ed4fc9687
7 changed files with 16 additions and 18 deletions

View File

@@ -361,7 +361,7 @@ func (sts *stsAPIHandlers) AssumeRoleWithSSO(w http.ResponseWriter, r *http.Requ
}
// Validate JWT; check clientID in claims matches the one associated with the roleArn
if err := globalOpenIDConfig.Validate(r.Context(), roleArn, token, accessToken, r.Form.Get(stsDurationSeconds), claims); err != nil {
if err := globalIAMSys.OpenIDConfig.Validate(r.Context(), roleArn, token, accessToken, r.Form.Get(stsDurationSeconds), claims); err != nil {
switch err {
case openid.ErrTokenExpired:
switch action {