Announcement Announcement Module
Collapse
No announcement yet.
OAuth: OAuth connection failed. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OAuth: OAuth connection failed.

    Hello All,
    I am using spring-security-oauth-3.19.SS3.jar for OAuth integration with my application. However, Spring OAuth is not able to connect with http://twitter.com/oauth/request_token. Application is throwing "OAuthRequestFailedException: OAuth connection failed." exception. Is there any problem with proxy setting? do i need to do some proxy configuration for oauth?

    Consumer:
    <oauth:consumer resource-details-service-ref="sampleResource" oauth-failure-page="/oauth_error.jsp">
    <oauth:url pattern="/sharedData/**" resources="sample"/>
    </oauth:consumer>
    <oauth:resource-details-service id="sampleResource">
    <oauth:resource id="sample" request-token-url="http://twitter.com/oauth/request_token" user-authorization-url="http://twitter.com/oauth/authorize" access-token-url="http://twitter.com/oauth/access_token" secret="F34HyfNIvLTXJNgUpLSyRRdQBYYllWIMXyim6NzPQ" key="7y0Wxw7B9kLIVNdPAEv47g" ></oauth:resource>
    </oauth:resource-details-service>


    Logs:

    signature base: POST&http%3A%2F%2Ftwitter.com%2Foauth%2Frequest_to ken&oauth_callback%3Dhttp%253A%252F%252Flocalhost% 253A8080%252FeAuction%252FsharedData%252FOAuthClie nt.htm%26oauth_consumer_key%3D7y0Wxw7B9kLIVNdPAEv4 7g%26oauth_nonce%3Deff96d04-b825-4f2a-b992-c381d0c67e1e%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1292319606%26oauth_versio n%3D1.0

    signature: wKbNIiVR2ShDK3cL/ZYuoPviLWY=

    org.springframework.security.oauth.consumer.OAuthR equestFailedException: OAuth connection failed.

  • #2
    I wish I had more information to give you. I've opened a JIRA issue to provide for a tonr/twitter integration example:

    https://jira.springsource.org/browse/SECOAUTH-37

    I'll know more how to answer twitter questions after that.

    Comment


    • #3
      Thanks!
      I am able to integrate with twitter and is working fine.
      After setting proxy properties it worked.

      Comment


      • #4
        Originally posted by vikrant chavan View Post
        Thanks!
        I am able to integrate with twitter and is working fine.
        After setting proxy properties it worked.
        Hey Vikrant - can you show me an example of how you set the proxy properties?

        Comment

        Working...
        X