diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/img/google-icon.png b/catalog-rest-service/src/main/resources/ui/src/assets/img/google-icon.png
deleted file mode 100644
index 9074676b7f4..00000000000
Binary files a/catalog-rest-service/src/main/resources/ui/src/assets/img/google-icon.png and /dev/null differ
diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-auth0.png b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-auth0.png
new file mode 100644
index 00000000000..d092e29c1e1
Binary files /dev/null and b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-auth0.png differ
diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-github.png b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-github.png
new file mode 100644
index 00000000000..654135eded7
Binary files /dev/null and b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-github.png differ
diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-google.png b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-google.png
new file mode 100644
index 00000000000..bc424ec0edc
Binary files /dev/null and b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-google.png differ
diff --git a/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-okta.png b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-okta.png
new file mode 100644
index 00000000000..dba8940982d
Binary files /dev/null and b/catalog-rest-service/src/main/resources/ui/src/assets/img/icon-okta.png differ
diff --git a/catalog-rest-service/src/main/resources/ui/src/pages/login/index.tsx b/catalog-rest-service/src/main/resources/ui/src/pages/login/index.tsx
index 1db43f82802..89313c6f953 100644
--- a/catalog-rest-service/src/main/resources/ui/src/pages/login/index.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/pages/login/index.tsx
@@ -33,30 +33,41 @@ const SigninPage = () => {
};
const getSignInButton = (): JSX.Element => {
+ let ssoBrandName = '';
+ let ssoBrandLogo = '';
switch (appState.authProvider.provider) {
case AuthTypes.GOOGLE: {
- return (
-
- );
+ ssoBrandLogo = Icons.GOOGLE_ICON;
+ ssoBrandName = 'Google';
+
+ break;
}
case AuthTypes.OKTA: {
- return (
-
- );
+ ssoBrandLogo = Icons.OKTA_ICON;
+ ssoBrandName = 'Okta';
+
+ break;
}
case AuthTypes.AUTH0: {
- return ;
+ ssoBrandLogo = Icons.AUTH0_ICON;
+ ssoBrandName = 'Auth0';
+
+ break;
}
// TODO: Add "case AuthTypes.GITHUB" after adding support for Github SSO
default: {
- return <>>;
+ break;
}
}
+
+ return ssoBrandName ? (
+
+ ) : (
+ <>>
+ );
};
if (appState.authDisabled || !isEmpty(appState.userDetails)) {
diff --git a/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx b/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx
index 3e1dc336eab..602c8a26e19 100644
--- a/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/utils/SvgUtils.tsx
@@ -1,5 +1,8 @@
import React, { FunctionComponent } from 'react';
-import IconGoogle from '../assets/img/google-icon.png';
+import IconAuth0 from '../assets/img/icon-auth0.png';
+import IconGithub from '../assets/img/icon-github.png';
+import IconGoogle from '../assets/img/icon-google.png';
+import IconOkta from '../assets/img/icon-okta.png';
import IconWelcomePopper from '../assets/img/welcome-popper-icon.png';
import IconAPI from '../assets/svg/api.svg';
import IconSuccess from '../assets/svg/check.svg';
@@ -70,6 +73,9 @@ export const Icons = {
LOGO_SMALL: 'logo-small',
WELCOME_POPPER: 'welcome-popper',
GOOGLE_ICON: 'google-icon',
+ OKTA_ICON: 'okta-icon',
+ GITHUB_ICON: 'github-icon',
+ AUTH0_ICON: 'auth0-icon',
EDIT: 'icon-edit',
EXPLORE: 'icon-explore',
MY_DATA: 'icon-my-data',
@@ -183,6 +189,18 @@ const SVGIcons: FunctionComponent = ({
case Icons.GOOGLE_ICON:
IconComponent = IconGoogle;
+ break;
+ case Icons.OKTA_ICON:
+ IconComponent = IconOkta;
+
+ break;
+ case Icons.GITHUB_ICON:
+ IconComponent = IconGithub;
+
+ break;
+ case Icons.AUTH0_ICON:
+ IconComponent = IconAuth0;
+
break;
case Icons.MENU:
IconComponent = IconMenu;