Skip to content

Commit

Permalink
Forgot username
Browse files Browse the repository at this point in the history
  • Loading branch information
xibriz committed Dec 4, 2017
1 parent 0d478a7 commit e19a346
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package edu.harvard.iq.dataverse.authorization.providers.oauth2.impl;

// Dataporten is a part of ScribeJava in the future https://github.com/scribejava/scribejava/pull/805
// import com.github.scribejava.apis.DataportenApi; //Uncomment and delete DataportenApi.java when ScribeJava is updated in Maven
import com.github.scribejava.core.builder.api.BaseApi;
import edu.emory.mathcs.backport.java.util.Collections;
import edu.harvard.iq.dataverse.authorization.AuthenticatedUserDisplayInfo;
Expand Down Expand Up @@ -78,7 +80,7 @@ protected ParsedUserResponse parseUserResponse( String responseBody ) {
return new ParsedUserResponse(
displayInfo,
userObject.getString("userid"), //persistentUserId
userObject.getString("email"), //username
username, //username
displayInfo.getEmailAddress().length()>0 ? Collections.singletonList(displayInfo.getEmailAddress())
: Collections.emptyList() );

Expand Down

0 comments on commit e19a346

Please sign in to comment.