diff --git a/src/pages/ViewAppPage.tsx b/src/pages/ViewAppPage.tsx index bd1ba70..0f440a0 100644 --- a/src/pages/ViewAppPage.tsx +++ b/src/pages/ViewAppPage.tsx @@ -46,6 +46,9 @@ const formSchema = z.object({ .string() .url({ message: "Service Provider ACS URL must be a valid URL." }), spEntityId: z.string(), + requiredDomain: z + .string() + .min(1, { message: "You must supply a required domain." }), }); export function ViewAppPage() { @@ -58,6 +61,7 @@ export function ViewAppPage() { defaultValues: { spAcsUrl: app.spAcsUrl, spEntityId: app.spEntityId, + requiredDomain: app?.requiredDomain || "", }, }); @@ -74,6 +78,7 @@ export function ViewAppPage() { ...storeData.apps[app.id], spAcsUrl: values.spAcsUrl, spEntityId: values.spEntityId, + requiredDomain: values.requiredDomain, }, }, }); @@ -151,6 +156,23 @@ export function ViewAppPage() { )} /> + ( + + Email Domain + + + + + When doing SSO logins from this app, this is the + domain your email must come from. + + + + )} + /> Cancel @@ -172,6 +194,10 @@ export function ViewAppPage() { Service Provider Entity ID
{app.spEntityId}
+
+ Email Domain +
+
{app.requiredDomain}