Class: OmniAuth::Strategies::Trello

Inherits:
OAuth
  • Object
show all
Defined in:
lib/omniauth/strategies/trello.rb

Instance Method Summary collapse

Instance Method Details

#raw_infoObject



44
45
46
# File 'lib/omniauth/strategies/trello.rb', line 44

def raw_info
  @raw_info ||= MultiJson.decode(access_token.get('/1/members/me').body)
end

#request_phaseObject



35
36
37
38
39
40
41
42
# File 'lib/omniauth/strategies/trello.rb', line 35

def request_phase
  options[:authorize_params] = {
    :name => options['app_name'],
    :scope => options['scope'] || 'read'
  }
  options[:authorize_params].merge!(:expiration => options['expiration']) if options['expiration']
  super
end