From 02e9c87fa41be61a0c94e5796c91dcc996268133 Mon Sep 17 00:00:00 2001 From: pedroigor Date: Mon, 9 Feb 2015 21:31:16 -0200 Subject: [PATCH] [KEYCLOAK-992] - Storing twitter tokens. --- .../twitter/TwitterIdentityProvider.java | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) 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