|
RequestToken
How the RequestToken api works
IntroductionThe RequestToken is used for the Authentication phase of the OAuth protocol This is only used from the ConsumerService side. RequestToken lifecycle
Contains
CreationYou ask a Consumer object to request the token from the ServiceProvider @request_token=@consumer.get_request_token AuthorizationRedirect the user to the authorization_url: redirect_to @request_token.authorization_url Exchange for AccessTokenOnce the user is redirected back to the callback url you can exchange it: @access_token=@request_token.get_access_token |
► Sign in to add a comment
I followed these steps,, but while executing this step @access_token=@request_token.get_access_token
I found the error like "INVALID authorization"
can anybody help me .
i have similar problem, but error is `token_request': 401 Unauthorized (OAuth::Unauthorized) in line 139 on consumer.rb
Same here: 401 Unauthorized
Works in 0.4.3, fails in 0.4.4
same error as @toine: 401 Unauthorized
Same error, 401 Unauthorized, working with version 0.3.4 and 0.4.3
the issue between 0.4.3 and now is probably the addition of oauth_body_hash: http://groups.google.com/group/oauth-ruby/browse_thread/thread/39caea17d85276ca/6bc0e5370d9e2a2c?lnk=gst&q=oauth_body_hash#6bc0e5370d9e2a2c
I successfully implemented a Rails 3.0.9 app as an OAuth provider using the oauth and oauth-plugin gems. However, to Rails 3.1.3, I'm receiving an 401 Unauthorized error when attempting to get the request token. I'm not sure whether it's an incompatibility with the gem or an issue with Rails 3.1.3.
I've been testing locally with the following:
> Consumer Key: BkdI1PnzRuvKDw2Qs1wVxtDrtvmqhUgeXLwNpNtm Consumer
> Secret: eCY7JFk4vK6IeWXVq7yS3OMVT1XKpVOWOImsy3iw
> Request Token URL: http://localhost:3000/oauth/request_token
> Access Token URL: http://localhost:3000/oauth/access_token
> Authorize URL: http://localhost:3000/oauth/authorize
In the console:
I've tried downgrading the oauth and oauth-plugin gems, but that doesn't seem to help. The same setup seems to work as expected in Rails 3.0.9. Any help would be greatly appreciated.
same issue in rails3.2 oauth_plugin 0.4.0.rc2