diff --git a/frontend/src/lib/components/Auth0Setting.svelte b/frontend/src/lib/components/Auth0Setting.svelte index 8ad744f286..beb9ec03f9 100644 --- a/frontend/src/lib/components/Auth0Setting.svelte +++ b/frontend/src/lib/components/Auth0Setting.svelte @@ -7,6 +7,7 @@ import ToggleButton from './common/toggleButton-v2/ToggleButton.svelte' import ToggleButtonGroup from './common/toggleButton-v2/ToggleButtonGroup.svelte' import TextInput from './text_input/TextInput.svelte' + import SettingCard from './instanceSettings/SettingCard.svelte' interface Props { value: any @@ -58,7 +59,7 @@ /> {#if enabled} -
+
+ {/if} diff --git a/frontend/src/lib/components/AuthSettings.svelte b/frontend/src/lib/components/AuthSettings.svelte index 8d9d90ff2b..c157808017 100644 --- a/frontend/src/lib/components/AuthSettings.svelte +++ b/frontend/src/lib/components/AuthSettings.svelte @@ -23,6 +23,7 @@ import Tooltip from './Tooltip.svelte' import { tick } from 'svelte' import { Popover } from './meltComponents' + import SettingsPageHeader from './settings/SettingsPageHeader.svelte' interface Props { snowflakeAccountIdentifier?: string @@ -30,6 +31,8 @@ requirePreexistingUserForOauth?: boolean baseUrl?: string scim?: import('svelte').Snippet + tab?: 'sso' | 'oauth' | 'scim' + hideTabs?: boolean } let { @@ -37,7 +40,9 @@ oauths = $bindable(), requirePreexistingUserForOauth = $bindable(), baseUrl, - scim + scim, + tab = $bindable('sso'), + hideTabs = false }: Props = $props() $effect(() => { @@ -87,8 +92,6 @@ let ssoClientName = $state('') let ssoNameInput = $state() - let tab: 'sso' | 'oauth' | 'scim' = $state('sso') - function createOAuthClient(name: string) { if (oauths && name) { // Create a new object to ensure the new item is added at the end @@ -212,34 +215,30 @@ } -
- - - - - -
+{#if !hideTabs} +
+ + + + + +
+{/if}
{#if oauths} {#if tab === 'sso'} + {#if !$enterpriseLicense || $enterpriseLicense.endsWith('_pro')} - + Without EE, the number of SSO users is limited to 10. SCIM/SAML is available on EE
{/if} - -
-
When at least one of the below options is set, users will be able to login to Windmill - via their third-party account. -
To test SSO, the recommended workflow is to to save the settings and try to login - in an incognito window. - Learn more -
-
-
-
{/if} {:else if tab == 'scim'} + {@render scim?.()} {/if} {/if} diff --git a/frontend/src/lib/components/AutheliaSetting.svelte b/frontend/src/lib/components/AutheliaSetting.svelte index ece8cb7d58..bd32b632a9 100644 --- a/frontend/src/lib/components/AutheliaSetting.svelte +++ b/frontend/src/lib/components/AutheliaSetting.svelte @@ -2,6 +2,7 @@ import IconedResourceType from './IconedResourceType.svelte' import TextInput from './text_input/TextInput.svelte' import Toggle from './Toggle.svelte' + import SettingCard from './instanceSettings/SettingCard.svelte' export let value: any @@ -46,7 +47,7 @@ /> {#if enabled} -
+ -
+ {/if}
diff --git a/frontend/src/lib/components/AuthentikSetting.svelte b/frontend/src/lib/components/AuthentikSetting.svelte index 70d56c5abf..6aa6a76d57 100644 --- a/frontend/src/lib/components/AuthentikSetting.svelte +++ b/frontend/src/lib/components/AuthentikSetting.svelte @@ -1,6 +1,7 @@
-
1080 ? 'pt-28' : 'pt-12')} > +
1080 ? 'pt-28' : 'pt-12' + )} + > {#if (!disableLogo && !$enterpriseLicense) || !$whitelabelNameStore}