product-apim
product-apim copied to clipboard
Incorrect error response for WebSocket API authentication error for no access_token/Authorization bearer
Description:
When invoking a websocket API in the API-Manager, getting 401 response if we do not provide the access token.
wscat -n -c wss://localhost:8099/test/1
error: Unexpected server response: 401
However if we define the access_token param in the wscat as URL parameter, we are getting different error without returning the 401.
wscat -n -c wss://localhost:8099/test/1?access_token=
error: socket hang up
Steps to reproduce:
- Create a Websocket API
- Invoke using wscat with access_token passed in params.
Affected Product Version:
APIM 3.2.0
@msm1992 shall we close this issue?
This issue is not reproducible in latest APIM pack, hence closing.