Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

2-legged OAuth #74

Open
marisademeglio opened this Issue · 3 comments

4 participants

@marisademeglio

This is more of a feature request: I'd like to use this library for 2-legged OAuth. As far as I can tell, it's not supported, because there's no way to get a connection without having to go through a token. My understanding is that 2-legged OAuth does not use tokens -- it uses only a client ID and secret, formatted correctly (regarding the HTTP headers), and transmitted via HTTPS.

If it's already possible, please let me know and delete this issue.

@dvdplm

Is two-legged OAuth even part of the OAuth2 spec? If it is I think it changed name.

@Arjeno

This is authorization using client credentials, see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-4.4 for more information.

oauth = OAuth2::Client.new('client_id', 'client_secret', :site => 'http://site.com')
oauth.client_credentials.get_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.