Sha256: 16bdc1f80388f21cdaaec4e66019f41f08897b55641b4c4c717b591179d4389f

Contents?: true

Size: 447 Bytes

Versions: 39

Compression:

Stored size: 447 Bytes

Contents

module Symphonia
  class UserSession < Authlogic::Session::Base
    params_key :key
    single_access_allowed_request_types %w(application/rss+xml application/xml application/json)

    generalize_credentials_error_messages true

    def self.validators_on(*args)
      []
    end

    protected

    def params_credentials
      super || ActionController::HttpAuthentication::Token.authenticate(controller) { |t, _o| t } || nil
    end
  end

end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
symphonia-6.0.5 app/models/symphonia/user_session.rb
symphonia-6.0.4 app/models/symphonia/user_session.rb
symphonia-6.0.2 app/models/symphonia/user_session.rb
symphonia-6.0.1 app/models/symphonia/user_session.rb
symphonia-6.0.0 app/models/symphonia/user_session.rb
symphonia-5.0.6 app/models/symphonia/user_session.rb
symphonia-5.0.5 app/models/symphonia/user_session.rb
symphonia-5.0.4 app/models/symphonia/user_session.rb
symphonia-5.0.3 app/models/symphonia/user_session.rb
symphonia-5.0.0 app/models/symphonia/user_session.rb
symphonia-4.2.0 app/models/symphonia/user_session.rb
symphonia-4.1.3 app/models/symphonia/user_session.rb
symphonia-4.1.2 app/models/symphonia/user_session.rb
symphonia-4.1.1 app/models/symphonia/user_session.rb
symphonia-4.1.0 app/models/symphonia/user_session.rb
symphonia-4.0.1 app/models/symphonia/user_session.rb
symphonia-4.0.0 app/models/symphonia/user_session.rb
symphonia-3.4.0 app/models/symphonia/user_session.rb
symphonia-3.3.4 app/models/symphonia/user_session.rb
symphonia-3.3.3 app/models/symphonia/user_session.rb