The AuthHash is a normalized schema returned by all OmniAuth strategies. It maps as much user information as the provider is able to provide into the InfoHash (stored as the `‘info’` key).
# File lib/omniauth/auth_hash.rb, line 9 def self.subkey_class; Hashie::Mash end
# File lib/omniauth/auth_hash.rb, line 20 def regular_writer(key, value) if key.to_s == 'info' && !value.is_a?(InfoHash) value = InfoHash.new(value) end super end
Tells you if this is considered to be a valid OmniAuth AuthHash. The requirements for that are that it has a provider name, a uid, and a valid info hash. See OmniAuth::AuthHash::InfoHash#valid? for more details there.
# File lib/omniauth/auth_hash.rb, line 16 def valid? uid? && provider? && info? && info.valid? end