mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
chore: remove oidc UI flag (#8949)
This commit is contained in:
parent
dfcb196b20
commit
7ff6a9c5c8
@ -7,7 +7,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
|||||||
import type { IAuthOptions } from 'hooks/api/getters/useAuth/useAuthEndpoint';
|
import type { IAuthOptions } from 'hooks/api/getters/useAuth/useAuthEndpoint';
|
||||||
import { SSO_LOGIN_BUTTON } from 'utils/testIds';
|
import { SSO_LOGIN_BUTTON } from 'utils/testIds';
|
||||||
import useQueryParams from 'hooks/useQueryParams';
|
import useQueryParams from 'hooks/useQueryParams';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
|
|
||||||
interface IAuthOptionProps {
|
interface IAuthOptionProps {
|
||||||
options?: IAuthOptions[];
|
options?: IAuthOptions[];
|
||||||
@ -22,9 +21,8 @@ function addOrOverwriteRedirect(path: string, redirectValue: string): string {
|
|||||||
|
|
||||||
const AuthOptions = ({ options }: IAuthOptionProps) => {
|
const AuthOptions = ({ options }: IAuthOptionProps) => {
|
||||||
const { classes: themeStyles } = useThemeStyles();
|
const { classes: themeStyles } = useThemeStyles();
|
||||||
const oidcRedirectEnabled = useUiFlag('oidcRedirect');
|
|
||||||
const query = useQueryParams();
|
const query = useQueryParams();
|
||||||
const redirectPath = (oidcRedirectEnabled && query.get('redirect')) || '';
|
const redirectPath = query.get('redirect') || '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -94,7 +94,6 @@ export type UiFlags = {
|
|||||||
showUserDeviceCount?: boolean;
|
showUserDeviceCount?: boolean;
|
||||||
flagOverviewRedesign?: boolean;
|
flagOverviewRedesign?: boolean;
|
||||||
licensedUsers?: boolean;
|
licensedUsers?: boolean;
|
||||||
oidcRedirect?: boolean;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user