Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Added - Scaffolding for unauthorized error handling #81

Merged
merged 2 commits into from
Jan 26, 2018

Conversation

StephenEsser
Copy link
Contributor

@StephenEsser StephenEsser commented Jan 25, 2018

Summary

This pull requests adds the foundation for generic error handling.

The axios interceptors will intercept every request and evaluate the server response / error. If the server responds with an unauthorized status or doesn't respond at all the browser will reload the current page which will force a login.

Additional Details

There is some consideration and discussions for future changes needed for other errors that may need to provide a user with some visual feedback. JS error, internal error, etc...

Ideally 403 errors would be prevented by safeguards in the UI. This pull request will refresh the page on forbidden requests, this should probably be handled in another way in the future. Either by preventing the action entirely in the UI or notifying the user they are not authorized to take that action.

Thanks for contributing to Kaiju.
@cerner/kaiju

@mjhenkes mjhenkes temporarily deployed to kaiju-deployed-pr-81 January 25, 2018 23:18 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants