Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate "Provider" in Java with Oauth library?
    primarykey
    data
    text
    <p>I downloaded the examples (<a href="https://code.google.com/p/oauth/" rel="nofollow">https://code.google.com/p/oauth/</a>) compiled and loaded the provider and consumer WAR files to Apache Tomcat.</p> <p>I configured <strong>provider.properties with:</strong> Consumer_key=mysecret (i'm not sure if i can set this as key) Consumer_key.description=Get a GPS position Consumer_key.callbackURL=http://localhost:8081/oauthC/OAuth/Callback</p> <p><strong>consumer.properties with:</strong> sample.serviceProvider.baseURL: <a href="http://localhost:8081/oauthP/" rel="nofollow">http://localhost:8081/oauthP/</a> sample.serviceProvider.requestTokenURL: request_token sample.serviceProvider.userAuthorizationURL: authorize sample.serviceProvider.accessTokenURL: access_token sample.consumerKey: mysecret sample.consumerSecret: mysecret (i'm quite confused what should i set in this attr)</p> <p>and start the server. I accessed <a href="http://localhost:8081/oauthC/" rel="nofollow">http://localhost:8081/oauthC/</a> (consumer site) go to sample and it returned this: </p> <p>OAuthProblemException: <strong>oauth_problem: token_rejected</strong></p> <p><strong>HTTP request:</strong> GET /oauthP/request_token?oauth_callback=http%3A%2F%2Flocalhost%3A8081%2FoauthC%2FOAuth%2FCallback%3Fconsumer%3Dsample%26returnTo%3D%252FoauthC%252FSampleProvider&amp;oauth_consumer_key=mysecret&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1298329818&amp;oauth_nonce=13474056411695&amp;oauth_version=1.0&amp;oauth_signature=JwuEr0jprO8G3bKRhXHdqpeuuxI%3D User-Agent: Jakarta Commons-HttpClient/3.1 Host: localhost:8081</p> <p><strong>HTTP status: 401</strong></p> <p><strong>HTTP response:</strong> HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 WWW-Authenticate: OAuth realm="http%3A%2F%2Flocalhost.localdomain", oauth_problem="token_rejected" Content-Type: application/x-www-form-urlencoded;charset=UTF-8 Content-Length: 28 Date: Mon, 21 Feb 2011 23:10:18 GMT oauth_problem=token_rejected</p> <p><strong>oauth_signature base string:</strong> GET&amp;http%3A%2F%2Flocalhost%3A8081%2FoauthP%2Frequest_token&amp;oauth_callback%3Dhttp%253A%252F%252Flocalhost%253A8081%252FoauthC%252FOAuth%252FCallback%253Fconsumer%253Dsample%2526returnTo%253D%25252FoauthC%25252FSampleProvider%26oauth_consumer_key%3Dmysecret%26oauth_nonce%3D13474056411695%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1298329818%26oauth_version%3D1.0</p> <p><strong>URL:</strong> <a href="http://localhost:8081/oauthP/request_token?oauth_callback=http%3A%2F%2Flocalhost%3A8081%2FoauthC%2FOAuth%2FCallback%3Fconsumer%3Dsample%26returnTo%3D%252FoauthC%252FSampleProvider&amp;oauth_consumer_key=mysecret&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1298329818&amp;oauth_nonce=13474056411695&amp;oauth_version=1.0&amp;oauth_signature=JwuEr0jprO8G3bKRhXHdqpeuuxI%3D" rel="nofollow">http://localhost:8081/oauthP/request_token?oauth_callback=http%3A%2F%2Flocalhost%3A8081%2FoauthC%2FOAuth%2FCallback%3Fconsumer%3Dsample%26returnTo%3D%252FoauthC%252FSampleProvider&amp;oauth_consumer_key=mysecret&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1298329818&amp;oauth_nonce=13474056411695&amp;oauth_version=1.0&amp;oauth_signature=JwuEr0jprO8G3bKRhXHdqpeuuxI%3D</a></p> <p>I'm stuck at this. Anyone can give an advice ? or show me documentation for this lib ? i can't find anything...</p> <p>thx for ur time</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload