Skip to content

Commit

Permalink
p2-inc#235 Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rtufisi committed Jul 23, 2024
1 parent 653e73b commit 7fbd0cc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ private String setUserInContext(AuthenticationFlowContext context, String userna
context.clearUser();
username = trimToNull(username);

/*Todo: @xpg. I saw this piece of code in a PR you've made. I'm not sure it's needed since on line 53 we get the attemptedUsername using the usernameHint method. Please check
if (username == null) {
LOG.debug(
"Could not find username in request. Trying attempted username from previous authenticator");
username = getAttemptedUsername(context);
}
*/

if (username == null) {
LOG.warn("No or empty username found in request");
context.getEvent().error(Errors.USER_NOT_FOUND);
Expand Down

0 comments on commit 7fbd0cc

Please sign in to comment.