Skip to content

Commit

Permalink
Better error message when OIDC authentication server is down #223
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Nov 9, 2021
1 parent 8e0790c commit 168481b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ConnectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ export default {
else if (authType === 'oidc' && error.name === 'ErrorResponse' && typeof error.error_description === 'string') {
Utils.error(this, error.error_description.replace(/\+/g, ' '));
}
else if (authType === 'oidc' && (error.message == 'Network Error' || error.name == 'NetworkError')) {
Utils.error(this, 'Sorry, the authentication server is not available right now.');
}
else {
Utils.exception(this, error);
}
Expand Down

0 comments on commit 168481b

Please sign in to comment.