Skip to content

Commit

Permalink
fixed password auth method for JWT logins
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed May 4, 2020
1 parent e3f539d commit c3e37c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ private UserAuthentication getOrCreateUser(App app, String identityProvider, Str
return oauth2Auth.getOrCreateUser(app, accessToken, "third");
} else if ("ldap".equalsIgnoreCase(identityProvider)) {
return ldapAuth.getOrCreateUser(app, accessToken);
} else if ("password".equalsIgnoreCase(identityProvider)) {
return passwordAuth.getOrCreateUser(app, accessToken);
} else if ("passwordless".equalsIgnoreCase(identityProvider)) {
return passwordlessAuth.getOrCreateUser(app, accessToken);
} else if ("password".equalsIgnoreCase(identityProvider) || "generic".equalsIgnoreCase(identityProvider)) {
return passwordAuth.getOrCreateUser(app, accessToken);
}
return null;
}
Expand Down

0 comments on commit c3e37c7

Please sign in to comment.