Accessing headers from Scripted attribute (Shibboleth 3.x)
Ilya Rumyantsev
iliggio at gmx.de
Thu Dec 19 07:21:59 EST 2019
Hi all, I would like to access http headers from attributes. So far the following works (for jsp pages):
`request.getHeader("X-MY-HEADER");`
How can I access a header from the attribute, e.g.:
```
<AttributeDefinition
id="headerValue"
xsi:type="ScriptedAttribute">
<Script><![CDATA[
# Something like this
headerValue = request.headers["X-MY-HEADER"]
}
]]></Script>
</AttributeDefinition>
```
Thanks a lot,
Ilya
More information about the users
mailing list