Stripping whitespace from an attribute in NativeSP

Rainer Hoerbe rainer at hoerbe.at
Mon Jan 29 16:55:45 EST 2018



> Am 2018-01-29 um 22:47 schrieb Rainer Hoerbe <rainer at hoerbe.at>:
> 
> I want to match a base64-ocded attribute value from an IDP against a list to make authZ decisions using RequestMapper. While 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’?

Correction: I meant a perl 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
> -- 
> For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20180129/b52e7219/attachment.html>


More information about the users mailing list