class HTTPBasicAuth
- HTTPBasicAuth
- Reference
- Object
Overview
This middleware adds HTTP Basic Auth support to your application. Returns 401 "Unauthorized" with wrong credentials.
basic_auth "username", "password"
Included Modules
- HTTP::Handler
Defined in:
kemal-basic-auth.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\""