You can clone with
HTTPS or Subversion.
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.
I use https://github.com/pelle/oauth-plugin for 2-legged
Is two-legged OAuth even part of the OAuth2 spec? If it is I think it changed name.
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')