mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-06 16:36:51 +00:00
fix(openid): don't ignore existence check for key mutator
This commit is contained in:
@@ -84,8 +84,8 @@ func NewJwksProvider(ctx context.Context, openidCfg openidconfig.Config) (*JwksP
|
||||
func keySetMutator(cfg openidconfig.Provider) jwk.PostFetcher {
|
||||
return jwk.PostFetchFunc(func(uri string, set jwk.Set) (jwk.Set, error) {
|
||||
for i := 0; i < set.Len(); i++ {
|
||||
key, _ := set.Key(i)
|
||||
if key.Algorithm().String() != "" {
|
||||
key, ok := set.Key(i)
|
||||
if !ok || key.Algorithm().String() != "" {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user