Class: OmniAuth::Strategies::Assembla
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Assembla
- Defined in:
- lib/omniauth/strategies/assembla.rb
Instance Method Summary collapse
Instance Method Details
#build_access_token ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/omniauth/strategies/assembla.rb', line 20 def build_access_token token_params = { code: request.params["code"], redirect_uri: callback_url, client_id: client.id, client_secret: client.secret, grant_type: "authorization_code", } client.get_token(token_params) end |
#raw_info ⇒ Object
47 48 49 50 |
# File 'lib/omniauth/strategies/assembla.rb', line 47 def raw_info access_token.[:parse] = :json @raw_info ||= access_token.get("/v1/user.json") end |
#request_phase ⇒ Object
16 17 18 |
# File 'lib/omniauth/strategies/assembla.rb', line 16 def request_phase super end |