Radiator Server Documentation — v10.33.2

http-basic-auth

HTTP Basic Authentication action for HTTP server handlers

Table of Contents
  • http-basic-auth
  • Context
  • Basic Syntax
  • Result
  • Related Actions
  • See Also

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 Authorization header 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: Basic header is present in the request.
    • No user was found in the execution context.
    • The user is not configured with password-based authentication.

Required context variables:

  • aaa.identity - Set automatically by HTTP server from Authorization header username
  • http.authorization.password - Set automatically by HTTP server from Authorization header password
  • user.password - Retrieved from backend for comparison

Backend mapping for user identification works the same as pap.

  • pap - PAP authentication for RADIUS

See Also

Navigation
  • accept

  • all

  • any

  • append

  • assert

  • backend

  • challenge

  • chap

  • conditions

  • copy

  • count

  • debug

  • discard

  • each

  • eap

  • error

  • filter

  • first

  • hotp

  • http-basic-auth

  • if

  • ignore

  • invoke

  • log

  • map

  • message

  • modify

  • mschap

  • mschapv2

  • none

  • pap

  • reason

  • reject

  • reject_errors

  • replace

  • reply

  • rewrite

  • set

  • sleep

  • sometimes

  • stop

  • totp

  • trace

  • try

  • until

  • while

  • with

  • yubikey

Related
  • pap