support HS256 series of JWT signature for OpenID connect (#15993)

This commit is contained in:
Harshavardhana
2022-11-03 16:41:53 -07:00
committed by GitHub
parent 4f5d38a4b1
commit 7be65f66b8
3 changed files with 87 additions and 38 deletions

View File

@@ -18,7 +18,6 @@
package openid
import (
"crypto"
"crypto/sha1"
"encoding/base64"
"errors"
@@ -198,7 +197,7 @@ func LookupConfig(s config.Config, transport http.RoundTripper, closeRespFn func
ProviderCfgs: map[string]*providerCfg{},
pubKeys: publicKeys{
RWMutex: &sync.RWMutex{},
pkMap: map[string]crypto.PublicKey{},
pkMap: map[string]interface{}{},
},
roleArnPolicyMap: map[arn.ARN]string{},
transport: openIDClientTransport,