mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: move google auth ui behind flag (#3606)
Moves the access tab for Google Auth behind a flag. The elements are still accessible but hidden by default so this is a soft change. This is a deprecated feature and is on its way out.
This commit is contained in:
parent
1fdf68eeec
commit
9521c452c5
@ -11,6 +11,7 @@ import { TabNav } from 'component/common/TabNav/TabNav/TabNav';
|
|||||||
|
|
||||||
export const AuthSettings = () => {
|
export const AuthSettings = () => {
|
||||||
const { authenticationType } = useUiConfig().uiConfig;
|
const { authenticationType } = useUiConfig().uiConfig;
|
||||||
|
const { uiConfig } = useUiConfig();
|
||||||
|
|
||||||
const tabs = [
|
const tabs = [
|
||||||
{
|
{
|
||||||
@ -29,7 +30,9 @@ export const AuthSettings = () => {
|
|||||||
label: 'Google',
|
label: 'Google',
|
||||||
component: <GoogleAuth />,
|
component: <GoogleAuth />,
|
||||||
},
|
},
|
||||||
];
|
].filter(
|
||||||
|
item => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google'
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -51,6 +51,7 @@ export interface IFlags {
|
|||||||
demo?: boolean;
|
demo?: boolean;
|
||||||
strategyTitle?: boolean;
|
strategyTitle?: boolean;
|
||||||
groupRootRoles?: boolean;
|
groupRootRoles?: boolean;
|
||||||
|
googleAuthEnabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
@ -75,6 +75,7 @@ exports[`should create default config 1`] = `
|
|||||||
"embedProxy": true,
|
"embedProxy": true,
|
||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
|
"googleAuthEnabled": false,
|
||||||
"groupRootRoles": false,
|
"groupRootRoles": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": false,
|
"messageBanner": false,
|
||||||
@ -101,6 +102,7 @@ exports[`should create default config 1`] = `
|
|||||||
"embedProxy": true,
|
"embedProxy": true,
|
||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"featuresExportImport": true,
|
"featuresExportImport": true,
|
||||||
|
"googleAuthEnabled": false,
|
||||||
"groupRootRoles": false,
|
"groupRootRoles": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"messageBanner": false,
|
"messageBanner": false,
|
||||||
|
@ -80,6 +80,10 @@ const flags = {
|
|||||||
process.env.UNLEASH_STRATEGY_TITLE,
|
process.env.UNLEASH_STRATEGY_TITLE,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
googleAuthEnabled: parseEnvVarBoolean(
|
||||||
|
process.env.GOOGLE_AUTH_ENABLED,
|
||||||
|
false,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||||
|
Loading…
Reference in New Issue
Block a user