Class: OmniAuth::Strategies::Accounts9

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

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



17
18
19
20
21
22
23
24
25
# 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

#raw_infoObject



50
51
52
53
54
# 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_phaseObject



13
14
15
# File 'lib/omniauth/strategies/accounts9.rb', line 13

def request_phase
	super
end