Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Dec 16, 2024
1 parent c89ef55 commit 2014e39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ protected void authenticateImpl(AuthenticationFlowContext context, SerializedBro
case "bceidbasic":
logger.debug("SOAM: Account type bceid found");
if (username == null) {
throw new SoamRuntimeException("No bceid_user_guid value was found in token");
throw new SoamRuntimeException("No bceid_guid value was found in token");
}
createOrUpdateUser(CommonUtils.getValueForAttribute("user.attributes.bceid_user_guid", brokerContext), accountType, "BASIC", null);
createOrUpdateUser(CommonUtils.getValueForAttribute("user.attributes.bceid_guid", brokerContext), accountType, "BASIC", null);
break;
case "bcsc":
logger.debug("SOAM: Account type bcsc found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public void authenticate(AuthenticationFlowContext context) {
break;
case "bceidbasic":
logger.debug("SOAM Post: Account type basic bceid found");
user_guid = CommonUtils.getValueForAttribute("user.attributes.bceid_user_guid", brokerContext);
user_guid = CommonUtils.getValueForAttribute("user.attributes.bceid_guid", brokerContext);
existingUser.setSingleAttribute("user_guid", user_guid);
if (user_guid == null) {
throw new SoamRuntimeException("No bceid_user_guid value was found in token");
throw new SoamRuntimeException("No bceid_guid value was found in token");
}
updateUserInfo(user_guid, accountType, "BASIC", null);
break;
Expand Down

0 comments on commit 2014e39

Please sign in to comment.