Wire up OneLogin provider to be visible in the settings UI

Signed-off-by: Marcus Crane <marcus.crane@lightspeedhq.com>
This commit is contained in:
Marcus Crane
2022-03-18 17:36:55 +13:00
parent ffaaec5950
commit cf647f6a72
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/plugin-user-settings': patch
---
Wired up the OneLogin provider to be visible in the Settings UI when configured correctly.
Previously it wasn't visible at all.
@@ -24,6 +24,7 @@ import {
microsoftAuthApiRef,
bitbucketAuthApiRef,
atlassianAuthApiRef,
oneloginAuthApiRef,
} from '@backstage/core-plugin-api';
type Props = {
@@ -80,6 +81,14 @@ export const DefaultProviderSettings = ({ configuredProviders }: Props) => (
icon={Star}
/>
)}
{configuredProviders.includes('onelogin') && (
<ProviderSettingsItem
title="OneLogin"
description="Provides authentication towards OneLogin APIs"
apiRef={oneloginAuthApiRef}
icon={Star}
/>
)}
{configuredProviders.includes('atlassian') && (
<ProviderSettingsItem
title="Atlassian"