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.


Reply With Quote

