KEYCLOAK-3034 NullPointerException when log in via Twitter
This commit is contained in:
parent
d85f9cb4e2
commit
fa3a2aafec
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