Skip to content

Commit

Permalink
Merge pull request #2 from bcgov/feature/entra
Browse files Browse the repository at this point in the history
feature/entra
  • Loading branch information
Harry0589 authored Dec 16, 2024
2 parents d2ce0e3 + c89ef55 commit ff5cefd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void authenticate(AuthenticationFlowContext context) {
logger.debug("Context Key: " + s + " Value: " + brokerClaims.get(s));
}

String accountType = context.getUser().getFirstAttribute("user.attributes.account_type");
String accountType = CommonUtils.getValueForAttribute("user.attributes.account_type", brokerContext);

if (accountType == null) {
throw new SoamRuntimeException("Account type is null; account type should always be available, check the IDP mappers for the hardcoded attribute");
Expand Down

0 comments on commit ff5cefd

Please sign in to comment.