Class: OmniAuth::Strategies::Django

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



16
17
18
19
20
21
22
23
24
# File 'lib/omniauth/strategies/django.rb', line 16

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

#callback_urlObject



45
46
47
# File 'lib/omniauth/strategies/django.rb', line 45

def callback_url
  full_host + script_name + callback_path
end

#raw_infoObject



39
40
41
42
43
# File 'lib/omniauth/strategies/django.rb', line 39

def raw_info
  access_token.options[:mode] = :header
  p access_token.get('userinfo').parsed
  @raw_info ||= access_token.get('userinfo').parsed
end

#request_phaseObject



12
13
14
# File 'lib/omniauth/strategies/django.rb', line 12

def request_phase
  super
end