class OmniAuth::Strategies::Aid

Class used to parse and return omniauth responses from aID

Public Instance Methods

prune!(hash) click to toggle source
# File lib/omniauth/strategies/aid.rb, line 31
def prune!(hash)
  hash.delete_if do |_, value|
    prune!(value) if value.is_a?(Hash)
    value.nil? || (value.respond_to?(:empty?) && value.empty?)
  end
end
raw_info() click to toggle source
# File lib/omniauth/strategies/aid.rb, line 38
def raw_info
  @raw_info ||= begin
    response_body = access_token.get('/api/mercury/v2/users/me').body
    JSON.parse(response_body) || {}
  end
end