Skip to content

Commit

Permalink
Merge pull request #3612 from Thushani-Jayasekera/choreo
Browse files Browse the repository at this point in the history
Add additional change to support test key
  • Loading branch information
renuka-fernando authored Oct 29, 2024
2 parents fb43b0d + 8d80cb1 commit 55a8b00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public AuthenticationContext authenticate(RequestContext requestContext) throws
if (requestContext.getMatchedAPI().getApiType().equalsIgnoreCase(APIConstants.ApiType.WEB_SOCKET)) {
String secProtocolHeader = requestContext.getHeaders().get(HttpConstants.WEBSOCKET_PROTOCOL_HEADER);
if (secProtocolHeader != null) {
if (secProtocolHeader.contains(Constants.WS_API_KEY_IDENTIFIER)) {
if (secProtocolHeader.contains(Constants.WS_TEST_KEY_IDENTIFIER)) {
AuthenticatorUtils.addWSProtocolResponseHeaderIfRequired(requestContext,
Constants.WS_API_KEY_IDENTIFIER);
Constants.WS_TEST_KEY_IDENTIFIER);
} else if (secProtocolHeader.contains(Constants.WS_OAUTH2_KEY_IDENTIFIED)) {
AuthenticatorUtils.addWSProtocolResponseHeaderIfRequired(requestContext,
Constants.WS_OAUTH2_KEY_IDENTIFIED);
Expand Down

0 comments on commit 55a8b00

Please sign in to comment.