Sha256: 5317d1e3a0a270427cc047f5e61ac8b5f991418a7b882cab78d953c753434a75

Contents?: true

Size: 588 Bytes

Versions: 13

Compression:

Stored size: 588 Bytes

Contents

# This class holds query/state variables common to oauth and openid
module AuthlogicConnect::Common::State
  
  def auth_controller?
    !auth_controller.blank?
  end

  def auth_params?
    auth_controller? && !auth_params.blank?
  end
  
  def auth_session?
    !auth_session.blank?
  end
  
  def is_auth_session?
    self.is_a?(Authlogic::Session::Base)
  end
  
  def start_authentication?
    start_oauth? || start_openid?
  end
  
  def validate_password_with_oauth?
    !using_openid? && super
  end
  
  def validate_password_with_openid?
    !using_oauth? && super
  end
  
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
authlogic-connect-andrewacove-0.5.7 lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.5 lib/authlogic_connect/common/state.rb
authlogic-connect-andrewacove-0.5.6 lib/authlogic_connect/common/state.rb
authlogic-connect-andrewacove-0.5.5 lib/authlogic_connect/common/state.rb
authlogic-connect-andrewacove-0.5.4 lib/authlogic_connect/common/state.rb
authlogic-connect-andrewacove-0.5.2 lib/authlogic_connect/common/state.rb
authlogic-connect-andrewacove-0.5.0 lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.4.06 lib/authlogic_connect/common/state.rb
authlogic-connect-x-0.0.4.05x lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.4.05 lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.4.04 lib/authlogic_connect/common/state.rb
authlogic-connect-0.0.4.03 lib/authlogic_connect/common/state.rb