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

fix: Handle authorize_access_token exception #1766

Merged
merged 2 commits into from Jan 6, 2022

Conversation

mjkonarski-b
Copy link
Contributor

@mjkonarski-b mjkonarski-b commented Jan 5, 2022

Description

Currently the call to authorize_access_token in oauth_authorized is not wrapped in exception handling. As a result when an error occurs in the OAuth flow, a 500 response is generated and the user sees an error page. This may lead to a bad user experience, because the user is not able to fix the problem in any way on their own.

This PR adds an error handling, so that any error will be caught and the user is redirected to the login page with the appropriate flash error message.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Is CRUD MVC related.
  • Is Auth, RBAC security related.
  • Changes the security db schema.
  • Introduces new feature
  • Removes existing feature

@dpgaspar
Copy link
Owner

dpgaspar commented Jan 6, 2022

makes sense, thank you @mjkonarski-b

@dpgaspar dpgaspar merged commit f12d3a6 into dpgaspar:master Jan 6, 2022
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.

None yet

2 participants