Class: Jm81auth::OAuth::Github
- Defined in:
- lib/jm81auth/oauth/github.rb
Constant Summary collapse
- ACCESS_TOKEN_URL =
'https://github.com/login/oauth/access_token'
- DATA_URL =
'https://api.github.com/user'
Instance Method Summary collapse
Methods inherited from Base
#data, #display_name, #email, #get_data, #initialize, #provider_data, #provider_id, #provider_name
Constructor Details
This class inherits a constructor from Jm81auth::OAuth::Base
Instance Method Details
#get_access_token ⇒ Object
7 8 9 10 |
# File 'lib/jm81auth/oauth/github.rb', line 7 def get_access_token response = client.post(ACCESS_TOKEN_URL, @params) Rack::Utils.parse_nested_query(response.body)['access_token'] end |