Merge pull request #9804 from backstage/jhaals/cleanup-auth

core-app-api: Remove deprecated auth ApiRefs
This commit is contained in:
Johan Haals
2022-03-01 09:39:34 +01:00
committed by GitHub
13 changed files with 10 additions and 463 deletions
@@ -17,11 +17,9 @@ import Star from '@material-ui/icons/Star';
import React from 'react';
import { ProviderSettingsItem } from './ProviderSettingsItem';
import {
auth0AuthApiRef,
githubAuthApiRef,
gitlabAuthApiRef,
googleAuthApiRef,
oauth2ApiRef,
oktaAuthApiRef,
microsoftAuthApiRef,
bitbucketAuthApiRef,
@@ -66,14 +64,6 @@ export const DefaultProviderSettings = ({ configuredProviders }: Props) => (
icon={Star}
/>
)}
{configuredProviders.includes('auth0') && (
<ProviderSettingsItem
title="Auth0"
description="Provides authentication towards Auth0 APIs"
apiRef={auth0AuthApiRef}
icon={Star}
/>
)}
{configuredProviders.includes('okta') && (
<ProviderSettingsItem
title="Okta"
@@ -98,13 +88,5 @@ export const DefaultProviderSettings = ({ configuredProviders }: Props) => (
icon={Star}
/>
)}
{configuredProviders.includes('oauth2') && (
<ProviderSettingsItem
title="YourOrg"
description="Example of how to use oauth2 custom provider"
apiRef={oauth2ApiRef}
icon={Star}
/>
)}
</>
);