Sha256: f2e4341e57d1fb133b9b6ce716587daf6f1e012e3764abefca5132a7ef333db7
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
module Passport module Oauth module State def self.included(base) base.extend ClassMethods base.send :include, InstanceMethods end module ClassMethods def request? params? && provider? && !response? end alias start? request? def response? params? && session? && token? end alias complete? response? def active? request? || response? end def params? super && key?(:oauth_provider) end def token? provider? && !token.blank? end def provider? !provider.blank? end def auto_register? true end end module InstanceMethods end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
passport-0.1.1 | lib/passport/oauth/protocol/state.rb |