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