Fix login with Twitter
This commit is contained in:
parent
b0002d6a09
commit
3f3b21a75e
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ public class TwitterIdentityProvider extends AbstractIdentityProvider<OAuth2Iden
|
||||||
twitter4j.User twitterUser = twitter.verifyCredentials();
|
twitter4j.User twitterUser = twitter.verifyCredentials();
|
||||||
|
|
||||||
BrokeredIdentityContext identity = new BrokeredIdentityContext(Long.toString(twitterUser.getId()));
|
BrokeredIdentityContext identity = new BrokeredIdentityContext(Long.toString(twitterUser.getId()));
|
||||||
|
identity.setIdp(TwitterIdentityProvider.this);
|
||||||
|
|
||||||
identity.setUsername(twitterUser.getScreenName());
|
identity.setUsername(twitterUser.getScreenName());
|
||||||
identity.setName(twitterUser.getName());
|
identity.setName(twitterUser.getName());
|
||||||
|
|
Loading…
Reference in a new issue