Skip to content

Commit

Permalink
ORV2-3381 Keycloak hint - bceidboth to bceidbusiness, new keycloak au…
Browse files Browse the repository at this point in the history
…dience (#1782)
  • Loading branch information
krishnan-aot authored Jan 29, 2025
1 parent 6928710 commit cd2b98c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dops/src/enum/idp.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum IDP {
BCEID = 'bceidboth',
// Revert to bceidboth when basic bceid is enabled.
BCEID = 'bceidbusiness',
IDIR = 'idir',
SERVICE_ACCOUNT = 'SERVICE_ACCOUNT',
}
2 changes: 1 addition & 1 deletion frontend/src/common/authentication/Authentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const LoginOptions = () => {
variant="contained"
onClick={() => {
signinRedirect({
extraQueryParams: { kc_idp_hint: IDPS.BCEID },
extraQueryParams: { kc_idp_hint: IDPS.BUSINESS_BCEID },
});
}}
sx={{ width: "200px" }}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/common/components/idpredirect/IDPRedirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const IDPRedirect = () => {
switch(paramValue) {
case IDPS.IDIR:
case IDPS.BCEID:
case IDPS.BUSINESS_BCEID:
signinRedirect({
extraQueryParams: { kc_idp_hint: paramValue },
});
Expand Down
1 change: 1 addition & 0 deletions frontend/src/common/types/idp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const IDPS = {
BCEID: "bceidboth",
IDIR: "idir",
BUSINESS_BCEID: "bceidbusiness",
} as const;

export type IDP = (typeof IDPS)[keyof typeof IDPS];
3 changes: 2 additions & 1 deletion policy/src/enum/idp.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum IDP {
BCEID = 'bceidboth',
// Revert to bceidboth when basic bceid is enabled.
BCEID = 'bceidbusiness',
IDIR = 'idir',
SERVICE_ACCOUNT = 'SERVICE_ACCOUNT',
}
3 changes: 2 additions & 1 deletion vehicles/src/common/enum/idp.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum IDP {
BCEID = 'bceidboth',
// Revert to bceidboth when basic bceid is enabled.
BCEID = 'bceidbusiness',
IDIR = 'idir',
SERVICE_ACCOUNT = 'service_account',
}

0 comments on commit cd2b98c

Please sign in to comment.