From 19678f5ccdd0c801e1663c27da28b5b44e697577 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Thu, 22 Dec 2022 16:24:33 -0300 Subject: [PATCH] fix: business bceid idp hint value (#35) --- src/types/LoginProviders.ts | 2 +- src/views/Landing/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/types/LoginProviders.ts b/src/types/LoginProviders.ts index 308efeb..90688e6 100644 --- a/src/types/LoginProviders.ts +++ b/src/types/LoginProviders.ts @@ -8,7 +8,7 @@ */ enum LoginProviders { IDIR = 'idir', - BCEID_BUSINESS = 'bceid-business' + BCEID_BUSINESS = 'bceidbusiness' } export default LoginProviders; diff --git a/src/views/Landing/index.tsx b/src/views/Landing/index.tsx index 40f9d58..59d132d 100644 --- a/src/views/Landing/index.tsx +++ b/src/views/Landing/index.tsx @@ -32,10 +32,9 @@ const Landing = () => { return; } - const idpHint = provider === 'idir' ? 'idir' : 'bceid-business'; const loginOptions: KeycloakLoginOptions = { redirectUri: `${window.location.origin}/home`, - idpHint + idpHint: provider }; login(loginOptions);