Older version2.8 ValvesHTTPHttpBasicAuthValve

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"
  }
}

The parameters are communicated into PhenixID Server, where they will be extracted and set on the username_dest/password_dest attributes.

Requirements