From 7d8bf32f28c3764181de75199ec8a4656c3f8b7e Mon Sep 17 00:00:00 2001 From: frikky Date: Fri, 11 Nov 2022 14:42:24 +0100 Subject: [PATCH] Fixed issue with error messages in Oauth2 --- frontend/src/views/SetAuthentication.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/SetAuthentication.jsx b/frontend/src/views/SetAuthentication.jsx index 218e4da4..278b631d 100644 --- a/frontend/src/views/SetAuthentication.jsx +++ b/frontend/src/views/SetAuthentication.jsx @@ -142,9 +142,14 @@ const SetAuthentication = (props) => { appAuthData.label = `${foundScope}` } - const foundTab = params["error"]; + var foundTab = params["error"]; if (foundTab !== null && foundTab !== undefined && foundTab.length > 0) { console.log("Found error: ", foundTab, "! Skipping Shuffle requests to validate Oauth2") + var errorDesc = params["error_description"] + if (errorDesc !== null && errorDesc !== undefined && errorDesc.length > 0) { + foundTab += "\n\n"+errorDesc + } + setFailed(true) setResponse(`${foundTab}`) } else {