File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
enforcer-parent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ public class APIConstants {
48
48
public static final String API_SECURITY_MUTUAL_SSL = "mutualssl" ;
49
49
public static final String API_SECURITY_BASIC_AUTH = "basic_auth" ;
50
50
public static final String SWAGGER_API_KEY_AUTH_TYPE_NAME = "apiKey" ;
51
- public static final String API_SECURITY_CHOREO_API_KEY = "api_key" ;
52
51
public static final String SWAGGER_API_KEY_IN_HEADER = "header" ;
53
52
public static final String SWAGGER_API_KEY_IN_QUERY = "query" ;
54
53
public static final String API_SECURITY_MUTUAL_SSL_MANDATORY = "mutualssl_mandatory" ;
Original file line number Diff line number Diff line change @@ -88,9 +88,8 @@ private void initializeAuthenticators(APIConfig apiConfig) {
88
88
equalsIgnoreCase (APIConstants .API_SECURITY_OAUTH_BASIC_AUTH_API_KEY_MANDATORY )) {
89
89
isOAuthBasicAuthMandatory = true ;
90
90
} else if (apiSecurityLevel .trim ().equalsIgnoreCase (APIConstants .SWAGGER_API_KEY_AUTH_TYPE_NAME )) {
91
- isApiKeyProtected = true ;
92
- } else if (apiSecurityLevel .trim ().equalsIgnoreCase (APIConstants .API_SECURITY_CHOREO_API_KEY )) {
93
91
isChoreoApiKeyProtected = true ;
92
+ isApiKeyProtected = true ;
94
93
}
95
94
}
96
95
}
You can’t perform that action at this time.
0 commit comments