diff --git a/frontend/src/lib/components/AuthentikSetting.svelte b/frontend/src/lib/components/AuthentikSetting.svelte new file mode 100644 index 0000000000..b5059c5677 --- /dev/null +++ b/frontend/src/lib/components/AuthentikSetting.svelte @@ -0,0 +1,64 @@ + + +
+ + {#if enabled} +
+ + + +
+ {/if} +
diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte index ad4fcdff7e..c8d8f2a83a 100644 --- a/frontend/src/lib/components/InstanceSettings.svelte +++ b/frontend/src/lib/components/InstanceSettings.svelte @@ -18,6 +18,7 @@ import CustomOauth from './CustomOauth.svelte' import { AlertTriangle, Plus } from 'lucide-svelte' import CustomSso from './CustomSso.svelte' + import AuthentikSetting from "$lib/components/AuthentikSetting.svelte"; export let tab: string = 'Core' export let hideTabs: boolean = false @@ -213,8 +214,9 @@ + {#each Object.keys(oauths) as k} - {#if !['google', 'microsoft', 'github', 'gitlab', 'jumpcloud', 'okta', 'keycloak', 'slack'].includes(k) && 'login_config' in oauths[k]} + {#if !['authentik','google', 'microsoft', 'github', 'gitlab', 'jumpcloud', 'okta', 'keycloak', 'slack'].includes(k) && 'login_config' in oauths[k]} {#if oauths[k]}
@@ -279,7 +281,7 @@
{#each Object.keys(oauths) as k} - {#if !['google', 'microsoft', 'github', 'gitlab', 'jumpcloud', 'okta', 'keycloak', 'slack'].includes(k) && !('login_config' in oauths[k])} + {#if !['authentik','google', 'microsoft', 'github', 'gitlab', 'jumpcloud', 'okta', 'keycloak', 'slack'].includes(k) && !('login_config' in oauths[k])} {#if oauths[k]}
diff --git a/frontend/src/lib/components/icons/AuthentikIcon.svelte b/frontend/src/lib/components/icons/AuthentikIcon.svelte new file mode 100644 index 0000000000..ee52fba6af --- /dev/null +++ b/frontend/src/lib/components/icons/AuthentikIcon.svelte @@ -0,0 +1,27 @@ + + authentik-svg + + + + + + + + + + + + + + + + diff --git a/frontend/src/lib/components/icons/index.ts b/frontend/src/lib/components/icons/index.ts index 1f62901e1c..bee278a9d4 100644 --- a/frontend/src/lib/components/icons/index.ts +++ b/frontend/src/lib/components/icons/index.ts @@ -66,6 +66,7 @@ import NocoDbIcon from './NocoDbIcon.svelte' import AzureIcon from './AzureIcon.svelte' import OktaIcon from './OktaIcon.svelte' import MsSqlServerIcon from './MSSqlServerIcon.svelte' +import AuthentikIcon from './AuthentikIcon.svelte'; export const APP_TO_ICON_COMPONENT = { postgresql: PostgresIcon, @@ -138,7 +139,8 @@ export const APP_TO_ICON_COMPONENT = { graphql: GraphqlIcon, nocodb: NocoDbIcon, azure: AzureIcon, - okta: OktaIcon + okta: OktaIcon, + authentik: AuthentikIcon } as const export { @@ -204,5 +206,6 @@ export { NocoDbIcon, AzureIcon, MicrosoftIcon, - OktaIcon + OktaIcon, + AuthentikIcon }