Class Merb::AuthenticationMixin::BasicAuthentication
In: lib/merb-core/controller/mixins/authentication.rb
Parent: Object

Methods

Included Modules

Merb::ControllerExceptions

Public Class methods

Public Instance methods

Determines whether or not the user is authenticated using the criteria in the provided authenticator block.

Parameters

&authenticator:A block that decides whether the provided username and password
  are valid.

Returns

Object:False if basic auth is not provided, otherwise the return value of the authenticator block.

@overridable :api: public

Returns

String:The password provided in the request.

:api: public

Returns

Boolean:Whether there has been any basic authentication credentials provided

:api: public

Request basic authentication and halt the filter chain. This is for use in a before filter.

Throws

:halt with an "HTTP Basic: Access denied." message with no layout, and sets the status to Unauthorized.

:api: public

Sets headers to request basic auth.

Returns

String:Returns the empty string to provide a response body.

:api: public

Returns

String:The username provided in the request.

:api: public

Protected Instance methods

[Validate]