From 7fecd8b87b4dddc8008eb613576201d1d01abc66 Mon Sep 17 00:00:00 2001 From: Ulysse Carion Date: Wed, 15 May 2024 16:30:12 -0700 Subject: [PATCH] sp acs url --- src/pages/SSOPage.tsx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/pages/SSOPage.tsx b/src/pages/SSOPage.tsx index b81afa3..53390fc 100644 --- a/src/pages/SSOPage.tsx +++ b/src/pages/SSOPage.tsx @@ -106,6 +106,7 @@ export function SSOPage() { now: now.format(), expire: expire.format(), }); + inputRef.current!.form!.action = app.spAcsUrl; inputRef.current!.form!.submit(); } @@ -113,10 +114,7 @@ export function SSOPage() { return ( <> -
+
@@ -140,8 +138,20 @@ export function SSOPage() { Email - + + + {email && ( + + You'll want to keep this as a{" "} + + {email.split("@")[1]} + {" "} + email address, otherwise your login will probably be + rejected by {new URL(app.spAcsUrl).hostname}. + + )} + )} @@ -154,7 +164,7 @@ export function SSOPage() { First Name - + @@ -168,16 +178,17 @@ export function SSOPage() { Last Name - + )} /> -
+