HTTPBasicAuth
Inherits HTTP::Handler < Reference < Object
This middleware adds HTTP Basic Auth support to your application. Returns 401 "Unauthorized" with wrong credentials.
basic_auth "username", "password"
Constants
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
new(username : String | Nil, password : String | Nil)
SourceInstance methods
authorized?(value)
Sourcecall(context)
Source