From cf541e785e4ec111a4fd802284cb2db78ccf0faf Mon Sep 17 00:00:00 2001 From: jnfrati Date: Mon, 6 Apr 2026 12:43:07 +0200 Subject: [PATCH] polished UI and fix post_login_redirect_uri --- idp/dex/web/templates/logout.html | 32 ++++++------- idp/dex/web/templates/totp_verify.html | 65 ++++++++++++++------------ management/server/idp/embedded.go | 2 + 3 files changed, 51 insertions(+), 48 deletions(-) diff --git a/idp/dex/web/templates/logout.html b/idp/dex/web/templates/logout.html index 42c339689..e084859af 100644 --- a/idp/dex/web/templates/logout.html +++ b/idp/dex/web/templates/logout.html @@ -1,25 +1,19 @@ - {{ template "header.html" . }} -
- {{ if .LoggedOut }} -

Logged Out

-
-
You have been successfully logged out.
-
- {{ else }} -

Session Not Found

-
-
No active session found.
-
- {{ end }} - - {{ if .BackURL }} - - {{ end }} +
+ {{ if .LoggedOut }} +

Logged Out

+

You have been successfully logged out.

+ {{ else }} +

Session Not Found

+

No active session found.

+ {{ end }} + {{ if .BackURL }} + + {{ end }}
{{ template "footer.html" . }} diff --git a/idp/dex/web/templates/totp_verify.html b/idp/dex/web/templates/totp_verify.html index 2cebadf65..8286418f0 100644 --- a/idp/dex/web/templates/totp_verify.html +++ b/idp/dex/web/templates/totp_verify.html @@ -1,37 +1,44 @@ - {{ template "header.html" . }} -
-

Two-factor authentication

- {{ if not (eq .QRCode "") }} -

Scan the QR code below using your authenticator app, then enter the code.

-
- QR code -
- {{ else }} -

Enter the code from your authenticator app.

-

{{ .Issuer }}

- {{ end }} -
-
-
- -
- -
- - {{ if .Invalid }} -
- Invalid code. Please try again. +
+

Two-factor authentication

+ {{ if not (eq .QRCode "") }} +

Scan the QR code below using your authenticator app, then enter the code.

+
+ QR code
+ {{ else }} +

Enter the code from your authenticator app.

{{ end }} - - +
+ {{ if .Invalid }} +
+ Invalid code. Please try again. +
+ {{ end }} + +
+ + +
+ + +
{{ template "footer.html" . }} diff --git a/management/server/idp/embedded.go b/management/server/idp/embedded.go index f19af0a1d..d3b3685cb 100644 --- a/management/server/idp/embedded.go +++ b/management/server/idp/embedded.go @@ -158,6 +158,7 @@ func (c *EmbeddedIdPConfig) ToYAMLConfig() (*dex.YAMLConfig, error) { Public: true, RedirectURIs: dashboardRedirectURIs, PostLogoutRedirectURIs: []string{ + c.Issuer, logoutURL, }, }, @@ -167,6 +168,7 @@ func (c *EmbeddedIdPConfig) ToYAMLConfig() (*dex.YAMLConfig, error) { Public: true, RedirectURIs: cliRedirectURIs, PostLogoutRedirectURIs: []string{ + c.Issuer, logoutURL, }, },