Skip to content

Commit

Permalink
fix: test to verify kc idp hint
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Dec 6, 2024
1 parent 6365537 commit 66094eb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ public void authenticate(AuthenticationFlowContext context) {

if (context.getUriInfo().getQueryParameters().containsKey(AdapterConstants.KC_IDP_HINT)) {
hintIdp = context.getUriInfo().getQueryParameters().getFirst(AdapterConstants.KC_IDP_HINT);
log.infof("Hint IDP: %s", hintIdp);
log.infof("Hint IDP1: %s", hintIdp);
}

// if only one IDP is enabled or hint IDP is passed, skip the form
if ((!idpContext.isEmpty() && idpContext.size() == 1) || (hintIdp != null && !hintIdp.equals(""))) {
log.infof("Hint IDP2: %s", hintIdp);
log.infof("Skip the form");
context.attempted();
return;
}
Expand Down

0 comments on commit 66094eb

Please sign in to comment.