diff --git a/plugins/auth/src/auth-oidc/index.js b/plugins/auth/src/auth-oidc/index.js index 790101190a..c97a485b64 100644 --- a/plugins/auth/src/auth-oidc/index.js +++ b/plugins/auth/src/auth-oidc/index.js @@ -96,7 +96,7 @@ export default class openIdConnect { logout(authData, authOnLogoutFn) { const signoutData = { id_token_hint: authData && authData.idToken, - state: window.location.href + state: encodeURI(window.location.href) }; return this.client @@ -105,7 +105,7 @@ export default class openIdConnect { authOnLogoutFn(); window.location = req.url; }) - .catch(function(err) { + .catch(function (err) { console.error('[OIDC] logout() Error', err); authOnLogoutFn(); }); @@ -176,7 +176,7 @@ export default class openIdConnect { Luigi.auth().store.removeAuthData(); resolve(response); }) - .catch(function(err) { + .catch(function (err) { reject(response); console.error('[OIDC] Logout Error', err); }); diff --git a/website/docs/src/client-js/outer-frame-handler.js b/website/docs/src/client-js/outer-frame-handler.js index 4844e13234..005d8d0b80 100644 --- a/website/docs/src/client-js/outer-frame-handler.js +++ b/website/docs/src/client-js/outer-frame-handler.js @@ -9,7 +9,7 @@ import { isSearchBot } from './helpers'; export class OuterFrameHandler { init() { if (this.outsideIframe() && !isSearchBot) { - const href = window.location.href; + const href = encodeURI(window.location.href); let newHref; if (href.includes('/docu-microfrontend')) { newHref = href.replace('/docu-microfrontend', '').replace('#', '?section='); diff --git a/website/fiddle/public/auth/idpmock/logout.html b/website/fiddle/public/auth/idpmock/logout.html index 02b0968b83..69f0a0d041 100644 --- a/website/fiddle/public/auth/idpmock/logout.html +++ b/website/fiddle/public/auth/idpmock/logout.html @@ -2,27 +2,24 @@ - Luigi Mock Identity Provider + Luigi Mock Identity Provider - Logging out... - + Logging out... + - \ No newline at end of file + diff --git a/website/fiddle/public/auth/logout.html b/website/fiddle/public/auth/logout.html index 300d82824c..2783e5887e 100644 --- a/website/fiddle/public/auth/logout.html +++ b/website/fiddle/public/auth/logout.html @@ -1,5 +1,6 @@ + @@ -15,30 +16,34 @@ font-size: 50px; color: #a0a0a0; } + .fd-container--centered { text-align: center; } - .fd-container { + + .fd-container { padding-top: 20px; } + -
-
- -
+
+
+ +
Logout successful -
-
- +
+
+ +
-
+ \ No newline at end of file