<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Inject the request context as per [1]<div><br></div><div>Note that it might not always be there (for non browser profiles, for which you should look at the profile request context..)</div><div><br></div><div>[1] <a href="https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition#ScriptedAttributeDefinition-Accessingotherinformation">https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition#ScriptedAttributeDefinition-Accessingotherinformation</a><br><br><div dir="ltr">Sent from my iPad</div><div dir="ltr"><br><blockquote type="cite">On 19 Dec 2019, at 12:22, Ilya Rumyantsev <iliggio@gmx.de> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hi all, I would like to access http headers from attributes. So far the following works (for jsp pages):</span><br><span></span><br><span>`request.getHeader("X-MY-HEADER");`</span><br><span></span><br><span></span><br><span>How can I access a header from the attribute, e.g.:</span><br><span></span><br><span>```</span><br><span><AttributeDefinition</span><br><span> id="headerValue"</span><br><span> xsi:type="ScriptedAttribute"></span><br><span> <Script><![CDATA[</span><br><span> # Something like this</span><br><span> headerValue = request.headers["X-MY-HEADER"]</span><br><span> }</span><br><span> ]]></Script></span><br><span> </AttributeDefinition></span><br><span></span><br><span>```</span><br><span></span><br><span>Thanks a lot,</span><br><span>Ilya</span><br><span>-- </span><br><span>For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg</span><br><span>To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net</span><br></div></blockquote></div></body></html>