HttpBasicAuthValve

Valve for extracting username and password from an Authorization header in basic format.

Header value must be in request parameter 'Authorization'.

If Authorization request parameter is missing, empty or does not contain a basic auth authorization string, the flow will fail ("Unauthorized").

 

Properties

Name Description Default value Mandatory Supports property expansion
username_dest Name of flow attribute receiving the username "username" No No
password_dest Name of flow attribute receiving the password "password" No No

Example Configuration

{      
  "name": "HttpBasicAuthValve",
  "enabled": "true",
  "config": {
    "username_dest": "uid",
    "password_dest": "pwd"
  }
}

Requirements