Module Authlogic::Session::HttpAuth::Config
In: lib/authlogic/session/http_auth.rb

Configuration for the HTTP basic auth feature of Authlogic.

Methods

Public Instance methods

Do you want to allow your users to log in via HTTP basic auth?

I recommend keeping this enabled. The only time I feel this should be disabled is if you are not comfortable having your users provide their raw username and password. Whatever the reason, you can disable it here.

  • Default: true
  • Accepts: Boolean
allow_http_basic_auth=(value = nil)

HTTP authentication realm

Sets the HTTP authentication realm.

Note: This option has no effect unless request_http_basic_auth is true

  • Default: ‘Application‘
  • Accepts: String
http_basic_auth_realm=(value = nil)

Whether or not to request HTTP authentication

If set to true and no HTTP authentication credentials are sent with the request, the Rails controller method authenticate_or_request_with_http_basic will be used and a ‘401 Authorization Required’ header will be sent with the response. In most cases, this will cause the classic HTTP authentication popup to appear in the users browser.

If set to false, the Rails controller method authenticate_with_http_basic is used and no 401 header is sent.

Note: This parameter has no effect unless allow_http_basic_auth is true

  • Default: false
  • Accepts: Boolean
request_http_basic_auth=(value = nil)

[Validate]