Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error view upon 401 API response #5097

Closed

Conversation

kontrollanten
Copy link
Contributor

Description

Show a message telling the user is not authorized to see a resource when 401 is responded from the API, instead of redirect to /login. I decided to not redirect to login and show a message since this is more clear for the user, and it's an uncommon case where an extra click won't harm.

Related issues

closes #4768

Has this been tested?

  • 🙅 no, because this PR does not update server code

Screenshots

image

@Chocobozzz Chocobozzz force-pushed the feat-4768-not-auth branch from bc748d4 to be2df48 Compare July 8, 2022 08:32
@Chocobozzz
Copy link
Owner

Chocobozzz commented Jul 8, 2022

Thanks, it's much more better!

(merged manually)

@Chocobozzz Chocobozzz closed this Jul 8, 2022
@kontrollanten kontrollanten deleted the feat-4768-not-auth branch July 8, 2022 09:56
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.

Show "access denied" when visiting a private/internal video
2 participants