Skip to content

Commit

Permalink
Update config deployer test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Apr 30, 2024
1 parent 0430cd6 commit 3e7c0cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/config-deployer-service/ballerina/APIClient.bal
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public class APIClient {
} else if authentication.authType == "JWT" {
JWTAuthentication jwtAuthentication = check authentication.cloneWithType(JWTAuthentication);
authTypes.jwt = {header: <string>jwtAuthentication.headerName, sendTokenToUpstream: <boolean>jwtAuthentication.sendTokenToUpstream, disabled: !jwtAuthentication.enabled, audience: jwtAuthentication.audience};
} else if authentication.authType == "APIKey" && authentication is APIKeyAuthentication {
} else if authentication.authType == "APIKey" {
APIKeyAuthentication apiKeyAuthentication = check authentication.cloneWithType(APIKeyAuthentication);
model:APIKey[] apiKeys = [];
boolean|() headerEnabled = apiKeyAuthentication.headerEnable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ authentication:
- authType: "APIKey"
enabled: true
queryParamEnable: true
headerEnable: true
corsConfiguration:
corsConfigurationEnabled: false
accessControlAllowOrigins:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ authentication:
- authType: "APIKey"
enabled: true
queryParamEnable: true
headerEnable: true
corsConfiguration:
corsConfigurationEnabled: false
accessControlAllowOrigins:
Expand Down

0 comments on commit 3e7c0cd

Please sign in to comment.