Skip to content

Commit

Permalink
chore: remove oidc UI flag (#8949)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Dec 10, 2024
1 parent dfcb196 commit 7ff6a9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
import type { IAuthOptions } from 'hooks/api/getters/useAuth/useAuthEndpoint';
import { SSO_LOGIN_BUTTON } from 'utils/testIds';
import useQueryParams from 'hooks/useQueryParams';
import { useUiFlag } from 'hooks/useUiFlag';

interface IAuthOptionProps {
options?: IAuthOptions[];
Expand All @@ -22,9 +21,8 @@ function addOrOverwriteRedirect(path: string, redirectValue: string): string {

const AuthOptions = ({ options }: IAuthOptionProps) => {
const { classes: themeStyles } = useThemeStyles();
const oidcRedirectEnabled = useUiFlag('oidcRedirect');
const query = useQueryParams();
const redirectPath = (oidcRedirectEnabled && query.get('redirect')) || '';
const redirectPath = query.get('redirect') || '';

return (
<>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/interfaces/uiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export type UiFlags = {
showUserDeviceCount?: boolean;
flagOverviewRedesign?: boolean;
licensedUsers?: boolean;
oidcRedirect?: boolean;
};

export interface IVersionInfo {
Expand Down

0 comments on commit 7ff6a9c

Please sign in to comment.