class OmniAuth::Strategies::BoletoSimples
Constants
- DEFAULT_SCOPE
- ENVIRONMENTS
Public Instance Methods
callback_url()
click to toggle source
# File lib/omniauth/strategies/boletosimples.rb, line 75 def callback_url options[:redirect_uri] || (full_host + script_name + callback_path) end
raw_info()
click to toggle source
# File lib/omniauth/strategies/boletosimples.rb, line 71 def raw_info @raw_info ||= load_identity end
setup_phase()
click to toggle source
# File lib/omniauth/strategies/boletosimples.rb, line 57 def setup_phase environment = options.environment || :production options.client_options[:site] = ENVIRONMENTS[environment.to_sym] options.client_options[:authorize_url] = "#{ENVIRONMENTS[environment.to_sym]}/api/v1/oauth2/authorize" return unless options.user_agent options.client_options[:connection_opts] = { headers: { 'User-Agent' => options.user_agent } } end
Private Instance Methods
load_identity()
click to toggle source
# File lib/omniauth/strategies/boletosimples.rb, line 87 def load_identity access_token.get('/api/v1/userinfo').parsed end