Skip to content

Commit

Permalink
Add additional change to support test key
Browse files Browse the repository at this point in the history
  • Loading branch information
Thushani-Jayasekera committed Oct 29, 2024
1 parent 87431a0 commit 8d80cb1
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 8d80cb1

Please sign in to comment.