Skip to content

RestApi > When a user doesn't have permissions appear an error exception#3368

Merged
nolanpro merged 4 commits intodevelopfrom
bugfix/FOUR-1782
Sep 3, 2020
Merged

RestApi > When a user doesn't have permissions appear an error exception#3368
nolanpro merged 4 commits intodevelopfrom
bugfix/FOUR-1782

Conversation

@danloa
Copy link
Copy Markdown
Contributor

@danloa danloa commented Sep 2, 2020

Resolves FOUR-1782

A new Authentication provider has been added. If the API call doesn't have the Accept header, this header is added as Accept:application.json. In this way the call goes through Laravel's API route and the corresponding 401 error is returned instead of redirecting to the login page.
Note that the correct error to return is 401 and not 403 as requested in the ticket FOUR-1782

@danloa danloa marked this pull request as ready for review September 2, 2020 16:07
@nolanpro nolanpro merged commit 69c526c into develop Sep 3, 2020
@velkymx velkymx deleted the bugfix/FOUR-1782 branch March 29, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants