This filter has been renamed to Header User in Repose version 8.
The Header Identity filter can introspect a configured header and set the X-PP-User and X-PP-Groups headers accordingly.
Filter name: header-identity
Filter configuration: header-identity.cfg.xml
Released: version 1.1.2 - 18.104.22.168*
* available in release 22.214.171.124 as Header User filter
Required headers: The Header Identity filter has no required request headers.
Required preceding filters: The Header Identity filter has no required preceding filters.
Standard filter order: If you are using other filters in your system model configuration, refer to the standard filter order table to determine where to place the Header Identity filter.
Configure the Header Identity filter by editing the header-identity.cfg.xml. Add the filter to the Repose deployment through the system model configuration by editing the following elements and attributes.
|<header-identity>||-||Required||Specifies the sub-elements and attributes to define your header identity configuration.|
|<source-headers>||-||Required||Lists the headers to identify the incoming user.|
|-||Required||Defines the header to identify incoming user.|
|id||Required||Names the header key that is applied to the X-PP-Group header. The header value associated with this key is applied to the X-PP-User header.|
|quality||Optional||Defines the quality assigned to users found in the request headers. If no quality is set, Repose will default this value to 0.1|
<header id="X-Header-User" quality=".25"/>
|Curl||curl -X GET http://address.to.service.n01/item -H "x-header-user:reposeuser1"|
Return codes and conditions
This filter does not return specific response codes. The request will simply pass through to the next filter or to the origin service.
The Header Identity filter will set X-PP-User and X-PP-Groups headers with the quality value that you configure. The default quality value is 0.1.