Skip to content

Commit

Permalink
Merge pull request #2313 from Tharsanan1/send-scopes
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
Krishanx92 authored Apr 8, 2024
2 parents 9978ee0 + ef9fe9d commit 935e215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/internal/operator/controllers/dp/api_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2609,10 +2609,10 @@ func prepareSecuritySchemeForCP(apiState *synchronizer.APIState) ([]string, stri
authHeader = authSpec.AuthTypes.Oauth2.Header
}
}
if authSpec.AuthTypes.MutualSSL.Required == "mandatory" {
if authSpec.AuthTypes.MutualSSL != nil && authSpec.AuthTypes.MutualSSL.Required == "mandatory" {
isMTLSMandatory = true
}
if !authSpec.AuthTypes.MutualSSL.Disabled {
if authSpec.AuthTypes.MutualSSL != nil && !authSpec.AuthTypes.MutualSSL.Disabled {
authSchemes = append(authSchemes, "mutualssl")
}
if len(authSpec.AuthTypes.APIKey) > 0 {
Expand Down

0 comments on commit 935e215

Please sign in to comment.