Skip to content

Commit

Permalink
fix: logic to skip login form based on kc idp hint
Browse files Browse the repository at this point in the history
  • Loading branch information
NithinKuruba committed Dec 6, 2024
1 parent ccdf54f commit d7115a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void authenticate(AuthenticationFlowContext context) {
}

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

0 comments on commit d7115a1

Please sign in to comment.