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
…header is passed for an API request.
Also for browser requests, a flash message is shown in that case, prompting the user to authenticate.
This follows a suggestion from issue #494
With the latest version from the master branch, a 401 response with an JSON encoded error message, should be returned, when the authorization header is missing.
Describe the bug
In the API docs it states that the auth header is
Authentication
, but in reality it isAuthorization
.To Reproduce
The request
gets the response:
Expected behavior
The correct way is:
This returns the expected JSON response.
Also, shouldn't the API respond with an
401 Unauthorized
error instead of redirecting to the login page?Server Side
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: