class Crack::Handler::BasicAuth
- Crack::Handler::BasicAuth
- Crack::Handler::Base
- Reference
- Object
Overview
This class provides Basic Authentication capabilities. The instance requires a username and password to be configured at creation.
Defined in:
crack/basicauth.crConstant Summary
-
AUTH =
"Authorization"
-
AUTH_MESSAGE =
"Could not verify your access level for that URL.\nYou have to login with proper credentials"
-
BASIC =
"Basic"
-
HEADER_LOGIN_REQUIRED =
"Basic realm=\"Login Required\""
Constructors
Class Method Summary
Instance Method Summary
-
#call(context)
Execution of this handler.
- #password : String | Nil
- #password=(password : String | Nil)
- #username : String | Nil
- #username=(username : String | Nil)