Sha256: a6ab9eeb6f66e3e3fc985a5ebfab18b6f633a6232b04acae4849989c9faabce0
Contents?: true
Size: 481 Bytes
Versions: 4
Compression:
Stored size: 481 Bytes
Contents
Warden::Strategies.add(:doorkeeper) do def valid? true end def authenticate! u = DoorkeeperHub::User.new('company_tokens' => company_tokens, 'id' => auth.uid) success!(u) end def auth request.env["omniauth.auth"] end def company_tokens auth.extra.raw_info.multi(DoorkeeperHub.token_name) end end Warden::Manager.serialize_into_session do |user| user end Warden::Manager.serialize_from_session do |data| DoorkeeperHub::User.new(data) end
Version data entries
4 entries across 4 versions & 1 rubygems