Skip to content

Commit

Permalink
Merge pull request #285 from wepala/feature/WS-1203
Browse files Browse the repository at this point in the history
feature/WS-1203
  • Loading branch information
akeemphilbert authored Jul 22, 2024
2 parents 54d4173 + 0f17e69 commit ab69fe1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions controllers/rest/security_validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"time"
)

//OpenIDConnect authorizer for OpenID
// OpenIDConnect authorizer for OpenID
type OpenIDConnect struct {
connectURL string
skipExpiryCheck bool
Expand Down Expand Up @@ -126,11 +126,6 @@ func (o OpenIDConnect) FromSchema(scheme *openapi3.SecurityScheme) (Validator, e
} else {
o.userIDClaim = "sub"
}

_, err = GetOpenIDConfig(o.connectURL)
if err != nil {
return o, fmt.Errorf("invalid open id connect url: '%s'", o.connectURL)
}
return o, err
}

Expand Down

0 comments on commit ab69fe1

Please sign in to comment.