jnorthr / socialauth

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

twitter is not a provider or valid OpenId URL #232

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.After creation of consumer key and secret
2.Click on Twitter -  id=twitter passing

at this time i am getting 
org.brickred.socialauth.exception.SocialAuthException: twitter is not a 
provider or valid OpenId URL
        at org.brickred.socialauth.SocialAuthConfig.getProviderConfig(SocialAuthConfig.java:339)
        at org.brickred.socialauth.SocialAuthManager.getProviderInstance(SocialAuthManager.java:257)
        at org.brickred.socialauth.SocialAuthManager.getAuthURL(SocialAuthManager.java:154)
        at org.brickred.socialauth.SocialAuthManager.getAuthenticationUrl(SocialAuthManager.java:115)
        at SocialTwist.SocialAuthenticationAction.execute(SocialAuthenticationAction.java:57)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Thread.java:662)
Nov 19, 2012 2:50:20 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
org.brickred.socialauth.exception.SocialAuthException: twitter is not a 
provider or valid OpenId URL
        at org.brickred.socialauth.SocialAuthConfig.getProviderConfig(SocialAuthConfig.java:339)
        at org.brickred.socialauth.SocialAuthManager.getProviderInstance(SocialAuthManager.java:257)
        at org.brickred.socialauth.SocialAuthManager.getAuthURL(SocialAuthManager.java:154)
        at org.brickred.socialauth.SocialAuthManager.getAuthenticationUrl(SocialAuthManager.java:115)
        at SocialTwist.SocialAuthenticationAction.execute(SocialAuthenticationAction.java:57)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Thread.java:662)

using socialauth-3.0.jar

please find the attached key/secret generated screen.

Original issue reported on code.google.com by visitsur...@gmail.com on 19 Nov 2012 at 9:31

Attachments:

GoogleCodeExporter commented 8 years ago
My oauth_sonsumer_properties are 
twitter.com.consumer_key = OkcFioqeEtj9S41BxNnw
twitter.com.comsumer_secret = p8uJrJXVQex99zHMy68wa0AAf5pcUnnBFXCiZFrZK1U

Original comment by visitsur...@gmail.com on 19 Nov 2012 at 9:32

GoogleCodeExporter commented 8 years ago
Hi 

can anyone tell how we can get the twitter contact list. 

thanks in advance.

Original comment by visitsur...@gmail.com on 19 Nov 2012 at 11:12

GoogleCodeExporter commented 8 years ago
Can you please make sure correct oauth_consumer.properies file in the classpath 
OR please check log to confirm, twitter configuration is loaded while creating 
an instance of SocialAuthConfig.

Original comment by tarun.na...@3pillarglobal.com on 21 Nov 2012 at 11:18

GoogleCodeExporter commented 8 years ago
As i debug the code in ProviderImplMap able to see the twitter but in 
ProvidersConfig unable to view the twitter but in all the (application 
properites , domain properties) have the twitter. Now how we can get inth 
Providers Config.

Actually i need to complete it ASAP.

Thanks in Advance.

Original comment by visitsur...@gmail.com on 22 Nov 2012 at 4:34

GoogleCodeExporter commented 8 years ago
Can any one tell me why i am unable to get the twitter in ProviderConfig, if i 
keep the demo key i can access the twitter.

Thanks in Advance

Original comment by visitsur...@gmail.com on 27 Nov 2012 at 1:20

GoogleCodeExporter commented 8 years ago
If demo keys are working then your keys should also work.
Try after removing spaces and next line. OR delete twitter property and 
manually add the properties again in the file at the end.

Original comment by tarun.na...@3pillarglobal.com on 27 Nov 2012 at 1:44

GoogleCodeExporter commented 8 years ago
One guy was also facing the same issue. There were extra spaces and line breaks 
with his keys. So try again by deleting twitter configuration and adding again.

Original comment by tarun.na...@3pillarglobal.com on 27 Nov 2012 at 2:24

GoogleCodeExporter commented 8 years ago
Please let me know if you are still facing the same issue.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 27 Dec 2012 at 9:13