Skip to content

Commit

Permalink
lookup by username
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jan 22, 2024
1 parent 5de0d9d commit dd63fb7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ public void exchangeCodeForToken() throws IOException {
AuthenticatedUser dvUser = authenticationSvc.lookupUser(idtf);

if (dvUser == null) {
dvUser = authenticationSvc.getAuthenticatedUserByEmail(oauthUser.getUsername());
dvUser = authenticationSvc.getAuthenticatedUser(oauthUser.getUsername());
if(dvUser==null) {
dvUser = authenticationSvc.getAuthenticatedUserByEmail(oauthUser.getUsername());
}
if (dvUser != null) {
logger.fine("cli_id " + idp.getClientId());
logger.fine("id " + idp.getId());
Expand Down

0 comments on commit dd63fb7

Please sign in to comment.