From 168481b25faf2b7d0bc22a4646837216348f3726 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Tue, 9 Nov 2021 17:55:17 +0100 Subject: [PATCH] Better error message when OIDC authentication server is down #223 --- src/components/ConnectForm.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ConnectForm.vue b/src/components/ConnectForm.vue index 1005f4056..088e2ac3b 100644 --- a/src/components/ConnectForm.vue +++ b/src/components/ConnectForm.vue @@ -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); }