diff --git a/docbook/reference/en/en-US/modules/social-twitter.xml b/docbook/reference/en/en-US/modules/social-twitter.xml index 7f7f3fb603..66f0d8307b 100644 --- a/docbook/reference/en/en-US/modules/social-twitter.xml +++ b/docbook/reference/en/en-US/modules/social-twitter.xml @@ -33,8 +33,6 @@ Twitter doesn't allow localhost in the redirect URI. To test on a local server replace localhost with 127.0.0.1. - Twitter also restricts connection to TLS/SSL connections only, so you are required to use HTTPS to access - Keycloak to enable log in with Twitter. \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css index 354525d6fa..a3fc592458 100644 --- a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css +++ b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css @@ -186,6 +186,10 @@ ol#kc-totp-settings li:first-of-type { width: 125px; } +.zocial:hover { + color: #fff !important; +} + .zocial.facebook, .zocial.github, .zocial.google, diff --git a/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterProvider.java b/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterProvider.java index 10df5cda46..f07eb7df59 100755 --- a/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterProvider.java +++ b/social/twitter/src/main/java/org/keycloak/social/twitter/TwitterProvider.java @@ -48,10 +48,7 @@ public class TwitterProvider implements SocialProvider { Twitter twitter = new TwitterFactory().getInstance(); twitter.setOAuthConsumer(config.getKey(), config.getSecret()); - String redirectUri = config.getCallbackUrl(); - redirectUri = redirectUri.replace("//localhost", "//127.0.0.1"); - - RequestToken requestToken = twitter.getOAuthRequestToken(redirectUri); + RequestToken requestToken = twitter.getOAuthRequestToken(config.getCallbackUrl()); return AuthRequest.create(requestToken.getToken(), requestToken.getAuthenticationURL()) .setAttribute("token", requestToken.getToken()).setAttribute("tokenSecret", requestToken.getTokenSecret())