Merge pull request #2881 from stianst/KEYCLOAK-3034
KEYCLOAK-3034 NullPointerException when log in via Twitter
This commit is contained in:
commit
5ed09acd94
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue