Radiator Server Documentation — v10.33.2
http-basic-auth
HTTP Basic Authentication action for HTTP server handlers
Table of Contents
http-basic-auth
Validates HTTP Basic Authentication credentials by comparing the password from the HTTP Authorization header against user data retrieved from a backend.
Context
Valid inside @execute blocks for HTTP server handlers only. The HTTP server automatically extracts credentials from the Authorization: Basic header and populates aaa.identity and http.authorization.password before the execute block runs.
Basic Syntax
@execute {
# User and password (hash) lookup
backend {
name "USERS";
query "FIND_USER";
}
# Validation
http-basic-auth;
}
Result
The http-basic-auth action produces the following pipeline results:
- Accept: The username and password from the
Authorizationheader match the user data from the backend. - Reject: Authentication failed. This occurs when:
- The username does not match the user loaded by the backend.
- The password does not match.
- Ignore: The action cannot perform authentication. This occurs when:
- No
Authorization: Basicheader is present in the request. - No user was found in the execution context.
- The user is not configured with password-based authentication.
- No
Required context variables:
aaa.identity- Set automatically by HTTP server fromAuthorizationheader usernamehttp.authorization.password- Set automatically by HTTP server fromAuthorizationheader passworduser.password- Retrieved from backend for comparison
Backend mapping for user identification works the same as pap.
Related Actions
pap- PAP authentication for RADIUS
See Also
- HTTP Basic Authentication - Complete guide with examples
Table of Contents