Module: Dobedobedo::Auth
- Defined in:
- lib/dobedobedo/auth.rb
Instance Method Summary collapse
Instance Method Details
#login ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/dobedobedo/auth.rb', line 5 def login @client = OAuth2::Client.new(:client_id, :client_secret, :site => :site_url, :token_url => :tokenurl, :authorization_url => :authurl) @token = @client.password.get_token(:username, :password) end |