Class: OmniAuth::Strategies::Assembla

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/assembla.rb

Instance Method Summary collapse

Instance Method Details

#build_access_tokenObject



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_infoObject



47
48
49
50
# File 'lib/omniauth/strategies/assembla.rb', line 47

def raw_info
  access_token.options[:parse] = :json
  @raw_info ||= access_token.get("/v1/user.json")
end

#request_phaseObject



16
17
18
# File 'lib/omniauth/strategies/assembla.rb', line 16

def request_phase
  super
end