For breaking up the HTTP Authorization Header to create username and password attributes, you will need to use 3 tasks.
1. Identify Document (header filter)
Filter Type = Request Header
Header Name = Authorization
Comparator = map-to
Value Type = Template
Value = Basic {basic64}
2. Convert Value (attribute conversion)
Operation = Base64 Decode
Attribute Type = User Attribute
Attribute Name = basic64
3. Map Attributes and Headers (new mapping)
Source Type = User Attribute
Source Name = basic64
Target Type = Template
Target Name = {username}:{password}
You will now have 2 user attributes "username" and "password" which can be used with the User Identity task for auth via attribute mapping.
How To: Breaking up the HTTP Authorization Header
Article is closed for comments.
0 Comments