Skip to content

Commit

Permalink
kuadrant authpolicy command: skip when oidc not found
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Nov 28, 2023
1 parent 039fccc commit fdb047b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/kuadrantapi/authpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ func AuthPolicyAuthenticationSchemeFromOAS(doc *openapi3.T) map[string]kuadranta

oidcScheme := findOIDCSecuritySchemesFromRequirements(doc, secRequirements)

if oidcScheme == nil {
// no oidc sec scheme found
continue
}

authName := utils.OpenAPIOperationName(path, verb, operation)

authentication[authName] = kuadrantapiv1beta2.AuthenticationSpec{
Expand Down

0 comments on commit fdb047b

Please sign in to comment.