Class: OmniAuth::Strategies::Seesaw

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



32
33
34
35
36
37
38
39
# File 'lib/omniauth/strategies/seesaw.rb', line 32

def authorize_params
  super.tap do |params|
    # Read the params if passed directly to omniauth_authorize_path
    %w(invitation_slug).each do |k|
      params[k.to_sym] = request.params[k] unless [nil, ''].include?(request.params[k])
    end
  end
end

#raw_infoObject



28
29
30
# File 'lib/omniauth/strategies/seesaw.rb', line 28

def raw_info
  @raw_info ||= access_token.get('/v1/me').parsed
end