Class: OmniAuth::Strategies::JAccount

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



12
13
14
15
16
17
18
# File 'lib/omniauth/strategies/jaccount.rb', line 12

def authorize_params
  super.tap do |params|
    %w[scope client_options].each do |v|
      params[v.to_sym] = request.params[v] if request.params[v]
    end
  end
end

#callback_urlObject



38
39
40
# File 'lib/omniauth/strategies/jaccount.rb', line 38

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject



34
35
36
# File 'lib/omniauth/strategies/jaccount.rb', line 34

def raw_info
  @raw_info ||= access_token.get('/me/profile').parsed['entities'][0]
end