<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 2018-01-29 um 22:47 schrieb Rainer Hoerbe <<a href="mailto:rainer@hoerbe.at" class="">rainer@hoerbe.at</a>>:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">Does the SP have a capability to transform an attribute value in the way of a regex like 's/\s//g’?</div></div></div></blockquote><div><br class=""></div>Correction: I meant a perl regex like 's/\s*//g’</div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">The documentation shows only extraction of matches (the Regex match attribute), no substitution:</div><div class=""><br class=""></div><div class=""><div class="index0 line number1 alt2"><code class="xml plain"><</code><code class="xml keyword">AttributeResolver</code> <code class="xml color1">type</code><code class="xml plain">=</code><code class="xml string">"Transform"</code> <code class="xml color1">source</code><code class="xml plain">=</code><code class="xml string">"displayName"</code><code class="xml plain">></code></div><div class="line index1 alt1 number2"><code class="xml spaces"> </code><code class="xml plain"><</code><code class="xml keyword">Regex</code> <code class="xml color1">match</code><code class="xml plain">=</code><code class="xml string">"^(.+) (.+)$"</code> <code class="xml color1">dest</code><code class="xml plain">=</code><code class="xml string">"givenName"</code><code class="xml plain">>$1</</code><code class="xml keyword">Regex</code><code class="xml plain">></code></div><div class="line index1 alt1 number2"><code class="xml plain"><br class=""></code></div><div class="line index1 alt1 number2">- Rainer</div><div class="alt2 line number3 index2"><code class="xml spaces"></code></div></div></div>-- <br class="">For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" class="">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br class="">To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" class="">users-unsubscribe@shibboleth.net</a></div></blockquote></div><br class=""></body></html>