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 = () => {
|
||||
const { authenticationType } = useUiConfig().uiConfig;
|
||||
const { uiConfig } = useUiConfig();
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
@ -29,7 +30,9 @@ export const AuthSettings = () => {
|
||||
label: 'Google',
|
||||
component: <GoogleAuth />,
|
||||
},
|
||||
];
|
||||
].filter(
|
||||
item => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google'
|
||||
);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@ -51,6 +51,7 @@ export interface IFlags {
|
||||
demo?: boolean;
|
||||
strategyTitle?: boolean;
|
||||
groupRootRoles?: boolean;
|
||||
googleAuthEnabled?: boolean;
|
||||
}
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -75,6 +75,7 @@ exports[`should create default config 1`] = `
|
||||
"embedProxy": true,
|
||||
"embedProxyFrontend": true,
|
||||
"featuresExportImport": true,
|
||||
"googleAuthEnabled": false,
|
||||
"groupRootRoles": false,
|
||||
"maintenanceMode": false,
|
||||
"messageBanner": false,
|
||||
@ -101,6 +102,7 @@ exports[`should create default config 1`] = `
|
||||
"embedProxy": true,
|
||||
"embedProxyFrontend": true,
|
||||
"featuresExportImport": true,
|
||||
"googleAuthEnabled": false,
|
||||
"groupRootRoles": false,
|
||||
"maintenanceMode": false,
|
||||
"messageBanner": false,
|
||||
|
@ -80,6 +80,10 @@ const flags = {
|
||||
process.env.UNLEASH_STRATEGY_TITLE,
|
||||
false,
|
||||
),
|
||||
googleAuthEnabled: parseEnvVarBoolean(
|
||||
process.env.GOOGLE_AUTH_ENABLED,
|
||||
false,
|
||||
),
|
||||
};
|
||||
|
||||
export const defaultExperimentalOptions: IExperimentalOptions = {
|
||||
|
Loading…
Reference in New Issue
Block a user