From 386bee1aa64c93da3f787595a5bd9bcda3528cfa Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 30 Sep 2025 20:33:11 +0000 Subject: [PATCH] fix: improve OIDC redirect URL validation and help text addresses #327 Fixed issues when PUBLIC_URL is not set: - Better error message explaining how to fix missing redirect URL - Help text now shows actionable guidance instead of incomplete message - Hide IdP redirect URL hint when no default is available --- .../src/components/Settings/OIDCPanel.tsx | 16 +++++++++++----- internal/config/oidc.go | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/frontend-modern/src/components/Settings/OIDCPanel.tsx b/frontend-modern/src/components/Settings/OIDCPanel.tsx index c1810c218..2f152589b 100644 --- a/frontend-modern/src/components/Settings/OIDCPanel.tsx +++ b/frontend-modern/src/components/Settings/OIDCPanel.tsx @@ -324,7 +324,11 @@ export const OIDCPanel: Component = (props) => { class={controlClass()} disabled={isEnvLocked() || saving()} /> -

If left blank, Pulse will use {config()?.defaultRedirect}.

+

+ {config()?.defaultRedirect + ? `If left blank, Pulse will use ${config()?.defaultRedirect}` + : 'Set PUBLIC_URL environment variable or enter redirect URL manually'} +

@@ -432,10 +436,12 @@ export const OIDCPanel: Component = (props) => {
-
- Redirect URL registered with your IdP must match Pulse:{' '} - {config()?.defaultRedirect || ''} -
+ +
+ Redirect URL registered with your IdP must match Pulse:{' '} + {config()?.defaultRedirect} +
+