class OmniAuth::Strategies::NCU
Constants
- DEFAULT_SCOPES
Public Instance Methods
info_allowed?()
click to toggle source
# File lib/omniauth/strategies/ncu.rb, line 71 def info_allowed? info_scopes = %w(user.info.basic.read) scope = (options['scope'] || DEFAULT_SCOPES) (info_scopes & scope).any? end
raw_info()
click to toggle source
# File lib/omniauth/strategies/ncu.rb, line 62 def raw_info return {} unless info_allowed? access_token.options[:mode] = :header @raw_info ||= access_token.get('personnel/v1/info').parsed rescue ::OAuth2::Error => e Logger.new(STDOUT).info e.to_s {} end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/ncu.rb, line 22 def request_phase super end