class OmniAuth::Strategies::Accounts9

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/accounts9.rb, line 17
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_url() click to toggle source
# File lib/omniauth/strategies/accounts9.rb, line 56
def callback_url    
    full_host + script_name + callback_path 
end
raw_info() click to toggle source
# File lib/omniauth/strategies/accounts9.rb, line 50
def raw_info
    access_token.options[:mode] = :query
    access_token.options[:param_name] = 'access_token'
    @raw_info ||= access_token.get('https://accounts.net9.org/api/userinfo').parsed['user']
end
request_phase() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/accounts9.rb, line 13
def request_phase
    super
end