c0debrain / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

Twitter issue #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure the application using twitter 1.1
2. Try use twitter credentials
3. The application is redirected to twitter, authentication happens, but 401 
error occurs while fetching the profile

What is the expected output? What do you see instead?
INFO : [Sep-04 20:11:08,800] socialauth.provider.TwitterImpl - Loading plugins
INFO : [Sep-04 20:11:08,800] socialauth.provider.TwitterImpl - Loading plugin 
:: org.brickred.socialauth.plugin.twitter.FeedPluginImpl
INFO : [Sep-04 20:11:08,800] socialauth.provider.TwitterImpl - Loading plugin 
:: org.brickred.socialauth.plugin.twitter.AlbumsPluginImpl
INFO : [Sep-04 20:11:08,800] socialauth.provider.TwitterImpl - Determining URL 
for redirection
INFO : [Sep-04 20:11:08,800] socialauth.oauthstrategy.OAuth1 - Determining URL 
for redirection
INFO : [Sep-04 20:11:09,582] socialauth.oauthstrategy.OAuth1 - Redirection to 
following URL should happen : 
https://api.twitter.com/oauth/authenticate?oauth_token=owQ9MQmMtkrB39edKsmINhIey
sQ4IfqNDaJQZGL9wEc&oauth_callback=http%3A%2F%2Fkid2adult.com%3A8080%2Fwtgservice
s%2Ftwitter.login%3FType%3DSuccess%26Provider%3Dtwitter
INFO : [Sep-04 20:11:16,467] brickred.socialauth.SocialAuthManager - Connecting 
provider : twitter
INFO : [Sep-04 20:11:16,467] socialauth.provider.TwitterImpl - Verifying the 
authentication response from provider
INFO : [Sep-04 20:11:16,467] socialauth.oauthstrategy.OAuth1 - Verifying the 
authentication response from provider
Sep 4, 2013 8:11:17 PM com.wtg.web.controller.LoginServlet doProcess
SEVERE: Exception occured
org.brickred.socialauth.exception.SocialAuthException: Failed to retrieve the 
user profile from  
http://api.twitter.com/1.1/users/show.json?screen_name=YVenkyY. Status :401
    at org.brickred.socialauth.provider.TwitterImpl.getProfile(TwitterImpl.java:203)
    at org.brickred.socialauth.provider.TwitterImpl.doVerifyResponse(TwitterImpl.java:188)
    at org.brickred.socialauth.provider.TwitterImpl.verifyResponse(TwitterImpl.java:177)
    at org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:184)
    at com.wtg.web.controller.LoginServlet.doProcess(LoginServlet.java:147)
    at com.wtg.web.controller.LoginServlet.doGet(LoginServlet.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

Original issue reported on code.google.com by s.satya....@gmail.com on 5 Sep 2013 at 1:12

GoogleCodeExporter commented 9 years ago
Are you using the same domain for running your application which you used while 
registering your application on twitter.

Original comment by tarun.na...@3pillarglobal.com on 10 Sep 2013 at 10:23

GoogleCodeExporter commented 9 years ago
Yes we have registered the application using the same domain name.

Original comment by s.satya....@gmail.com on 10 Sep 2013 at 3:55

GoogleCodeExporter commented 9 years ago
Please not that the redirection is happening properly, however while fetching 
the profile we are getting a 401 error.

Original comment by s.satya....@gmail.com on 10 Sep 2013 at 3:56

GoogleCodeExporter commented 9 years ago
Can you please run your application on DEBUG log level and show me that logs.

Original comment by tarun.na...@3pillarglobal.com on 13 Sep 2013 at 3:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Closing this issue, Please open new one if still facing the problem.

Original comment by tarun.na...@3pillarglobal.com on 15 Oct 2013 at 12:15