Stripping whitespace from an attribute in NativeSP
Rainer Hoerbe
rainer at hoerbe.at
Mon Jan 29 16:47:40 EST 2018
I want to match a base64-ocded attribute value from an IDP against a list to make authZ decisions using RequestMapper. Whale working in general, it fails when the IDP has newlines in the attribute value. The value is an X509 cert, and the spec does allow whitespace.
Does the SP have a capability to transform an attribute value in the way of a regex like 's/\s//g’?
The documentation shows only extraction of matches (the Regex match attribute), no substitution:
<AttributeResolver type="Transform" source="displayName">
<Regex match="^(.+) (.+)$" dest="givenName">$1</Regex>
- Rainer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20180129/58bd0fac/attachment.html>
More information about the users
mailing list