sp acs url
This commit is contained in:
parent
2b64f1de76
commit
7fecd8b87b
@ -106,6 +106,7 @@ export function SSOPage() {
|
|||||||
now: now.format(),
|
now: now.format(),
|
||||||
expire: expire.format(),
|
expire: expire.format(),
|
||||||
});
|
});
|
||||||
|
inputRef.current!.form!.action = app.spAcsUrl;
|
||||||
inputRef.current!.form!.submit();
|
inputRef.current!.form!.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,10 +114,7 @@ export function SSOPage() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<form
|
<form method="post">
|
||||||
method="post"
|
|
||||||
action="http://localhost:8080/saml/saml_conn_e4wryo0hq30mcrzc32b67otha/acs"
|
|
||||||
>
|
|
||||||
<input type="hidden" name="SAMLResponse" ref={inputRef} />
|
<input type="hidden" name="SAMLResponse" ref={inputRef} />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@ -140,8 +138,20 @@ export function SSOPage() {
|
|||||||
<FormItem className="col-span-2">
|
<FormItem className="col-span-2">
|
||||||
<FormLabel>Email</FormLabel>
|
<FormLabel>Email</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input disabled={!!email} type="email" {...field} />
|
<Input type="email" {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|
||||||
|
{email && (
|
||||||
|
<FormDescription>
|
||||||
|
You'll want to keep this as a{" "}
|
||||||
|
<span className="font-semibold">
|
||||||
|
{email.split("@")[1]}
|
||||||
|
</span>{" "}
|
||||||
|
email address, otherwise your login will probably be
|
||||||
|
rejected by {new URL(app.spAcsUrl).hostname}.
|
||||||
|
</FormDescription>
|
||||||
|
)}
|
||||||
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
@ -154,7 +164,7 @@ export function SSOPage() {
|
|||||||
<FormItem className="col-span-1">
|
<FormItem className="col-span-1">
|
||||||
<FormLabel>First Name</FormLabel>
|
<FormLabel>First Name</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input disabled={!!firstName} {...field} />
|
<Input {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
@ -168,16 +178,17 @@ export function SSOPage() {
|
|||||||
<FormItem className="col-span-1">
|
<FormItem className="col-span-1">
|
||||||
<FormLabel>Last Name</FormLabel>
|
<FormLabel>Last Name</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input disabled={!!lastName} {...field} />
|
<Input {...field} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="col-span-2 flex justify-end">
|
<div className="mt-4 col-span-2">
|
||||||
<Button
|
<Button
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
"w-full",
|
||||||
email &&
|
email &&
|
||||||
"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 shadow-xl",
|
"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 shadow-xl",
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user