class OmniAuth::Strategies::Line

Public Instance Methods

callback_phase() click to toggle source

host changed

Calls superclass method
# File lib/omniauth/strategies/line.rb, line 17
def callback_phase
  options[:client_options][:site] = 'https://api.line.me'
  super
end
callback_url() click to toggle source
# File lib/omniauth/strategies/line.rb, line 22
def callback_url
  # Fixes regression in omniauth-oauth2 v1.4.0 by https://github.com/intridea/omniauth-oauth2/commit/85fdbe117c2a4400d001a6368cc359d88f40abc7
  options[:callback_url] || (full_host + script_name + callback_path)
end
raw_info() click to toggle source

Require: Access token with PROFILE permission issued.

# File lib/omniauth/strategies/line.rb, line 38
def raw_info
  @raw_info ||= JSON.load(access_token.get('v2/profile').body)
rescue ::Errno::ETIMEDOUT
  raise ::Timeout::Error
end