diff --git a/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterIdentityProvider.java b/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterIdentityProvider.java index 1b7a563194..d9ee567e29 100755 --- a/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterIdentityProvider.java +++ b/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterIdentityProvider.java @@ -31,8 +31,10 @@ import org.keycloak.models.FederatedIdentityModel; import org.keycloak.social.SocialIdentityProvider; import twitter4j.Twitter; import twitter4j.TwitterFactory; +import twitter4j.auth.AccessToken; import twitter4j.auth.RequestToken; +import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; import javax.ws.rs.core.UriInfo; @@ -98,15 +100,26 @@ public class TwitterIdentityProvider extends AbstractIdentityProvider