Class/Module Index [+]

Quicksearch

Authlogic::Session::Params::Config

Configuration for the params / single access feature.

Public Instance Methods

params_key(value = nil) click to toggle source

Works exactly like cookie_key, but for params. So a user can login via params just like a cookie or a session. Your URL would look like:

http://www.domain.com?user_credentials=my_single_access_key

You can change the "user_credentials" key above with this configuration option. Keep in mind, just like cookie_key, if you supply an id the id will be appended to the front. Check out cookie_key for more details. Also checkout the "Single Access / Private Feeds Access" section in the README.

  • Default: cookie_key

  • Accepts: String

# File lib/authlogic/session/params.rb, line 45
def params_key(value = nil)
  rw_config(:params_key, value, cookie_key)
end
Also aliased as: params_key=
params_key=(value = nil) click to toggle source
Alias for: params_key
single_access_allowed_request_types(value = nil) click to toggle source

Authentication is allowed via a single access token, but maybe this is something you don't want for your application as a whole. Maybe this is something you only want for specific request types. Specify a list of allowed request types and single access authentication will only be allowed for the ones you specify.

  • Default: ["application/rss+xml", "application/atom+xml"]

  • Accepts: String of a request type, or :all or :any to allow single access authentication for any and all request types

# File lib/authlogic/session/params.rb, line 56
def single_access_allowed_request_types(value = nil)
  rw_config(:single_access_allowed_request_types, value, ["application/rss+xml", "application/atom+xml"])
end
single_access_allowed_request_types=(value = nil) click to toggle source

[Validate]

Generated with the Darkfish Rdoc Generator 2.