diff --git a/frontend/src/component/admin/auth/AuthSettings.tsx b/frontend/src/component/admin/auth/AuthSettings.tsx
index 59856f3bbd..59df7bfd37 100644
--- a/frontend/src/component/admin/auth/AuthSettings.tsx
+++ b/frontend/src/component/admin/auth/AuthSettings.tsx
@@ -1,4 +1,4 @@
-import { Alert, Tab, Tabs } from '@mui/material';
+import { Tab, Tabs } from '@mui/material';
import { PageContent } from 'component/common/PageContent/PageContent';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
@@ -15,7 +15,6 @@ import { TabPanel } from 'component/common/TabNav/TabPanel/TabPanel';
import { usePageTitle } from 'hooks/usePageTitle';
export const AuthSettings = () => {
- const { authenticationType } = useUiConfig().uiConfig;
const { uiConfig, isEnterprise } = useUiConfig();
const tabs = [
@@ -35,17 +34,14 @@ export const AuthSettings = () => {
label: 'Google',
component: ,
},
+ {
+ label: 'SCIM',
+ component: ,
+ },
].filter(
(item) => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google',
);
- if (isEnterprise()) {
- tabs.push({
- label: 'SCIM',
- component: ,
- });
- }
-
const [activeTab, setActiveTab] = useState(0);
usePageTitle(`Single sign-on: ${tabs[activeTab].label}`);
@@ -56,7 +52,7 @@ export const AuthSettings = () => {
withTabs
header={
{
}
>
}
- />
-
- You are running Unleash in demo mode. You have
- to use the Enterprise edition in order configure
- Single Sign-on.
-
- }
- />
-
- You have decided to use custom authentication
- type. You have to use the Enterprise edition in
- order configure Single Sign-on from the user
- interface.
-
- }
- />
-
- Your Unleash instance is managed by the Unleash
- team.
-
- }
- />
-
{tabs.map((tab, index) => (
@@ -133,6 +95,7 @@ export const AuthSettings = () => {
))}
}
+ elseShow={}
/>
diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts
index ebdc57d553..34f7970e19 100644
--- a/src/lib/types/experimental.ts
+++ b/src/lib/types/experimental.ts
@@ -61,7 +61,8 @@ export type IFlagKey =
| 'streaming'
| 'etagVariant'
| 'oidcRedirect'
- | 'deltaApi';
+ | 'deltaApi'
+ | 'newHostedAuthHandler';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@@ -290,6 +291,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_DELTA_API,
false,
),
+ newHostedAuthHandler: parseEnvVarBoolean(
+ process.env.UNLEASH_EXPERIMENTAL_NEW_HOSTED_AUTH_HANDLER,
+ false,
+ ),
};
export const defaultExperimentalOptions: IExperimentalOptions = {
diff --git a/src/lib/types/option.ts b/src/lib/types/option.ts
index b4919ad341..98cd76f8cc 100644
--- a/src/lib/types/option.ts
+++ b/src/lib/types/option.ts
@@ -54,7 +54,13 @@ export interface IVersionOption {
export enum IAuthType {
OPEN_SOURCE = 'open-source',
DEMO = 'demo',
+ /**
+ * Self-hosted by the customer. Should eventually be renamed to better reflect this.
+ */
ENTERPRISE = 'enterprise',
+ /**
+ * Hosted by Unleash.
+ */
HOSTED = 'hosted',
CUSTOM = 'custom',
NONE = 'none',