KEYCLOAK-3034 NullPointerException when log in via Twitter

This commit is contained in:
Stian Thorgersen 2016-05-25 08:09:34 +02:00
parent d85f9cb4e2
commit fa3a2aafec

View file

@ -113,6 +113,9 @@ public class TwitterIdentityProvider extends AbstractIdentityProvider<OAuth2Iden
public Response authResponse(@QueryParam("state") String state,
@QueryParam("denied") String denied,
@QueryParam("oauth_verifier") String verifier) {
if (denied != null) {
return callback.cancelled(state);
}
try {
Twitter twitter = new TwitterFactory().getInstance();