You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bearer token passed can have invalid format and still the API server should respond with "Access denied", logging the invalid token error. But should not restart or panic.
Actual Behaviour
API Server panics and restarts.
Steps to Reproduce the Problem
Run the API server
Send a request with a bearer token that doesn't have a correct JWT format.
sayan-biswas
changed the title
API Server panics/restarts when invalid bearer token is passed
API Server panics when bearer token with invalid JWT format is passed
Mar 30, 2023
Expected Behaviour
The bearer token passed can have invalid format and still the API server should respond with "Access denied", logging the invalid token error. But should not restart or panic.
Actual Behaviour
API Server panics and restarts.
Steps to Reproduce the Problem
Additional Info
The auth module is able to handle this, but the custom interceptor which logs user details has missing a
return
statementresults/cmd/api/main.go
Lines 224 to 229 in ffe0be3
The text was updated successfully, but these errors were encountered: