Class | Merb::AuthenticationMixin::BasicAuthentication |
In: |
lib/merb-core/controller/mixins/authentication.rb
|
Parent: | Object |
Determines whether or not the user is authenticated using the criteria in the provided authenticator block.
&authenticator: | A block that decides whether the provided username and password |
are valid.
Object: | False if basic auth is not provided, otherwise the return value of the authenticator block. |
@overridable :api: public
Request basic authentication and halt the filter chain. This is for use in a before filter.
:halt with an "HTTP Basic: Access denied." message with no layout, and sets the status to Unauthorized.
:api: public