/simple_oauth_authentication

Simple OAuth authentication Rails plugin

Primary LanguageRubyMIT LicenseMIT

SimpleOauthAuthentication
=========================

Adds OAuth authentication (and authorization of access to a provider's resources)
to the SimpleAuthentication plugin.


Example
=======

class LoginsController

  def complete_oauth_login
    self.current_user = User.do_something_with_twitter_info(JSON.parse(oauth_access_token.get("/profile.json")))
  end

  def oauth_site
    "http://twitter.com"
  end

end


POST /logins/oauth

[User authorizes access]

GET /logins/oauth/complete


Copyright (c) 2009 Tore Darell, released under the MIT license