Forward attribute to application
abdul waheed
abdulwaheed18 at gmail.com
Mon Mar 6 09:07:56 EST 2017
So, you have the following AttributeStatement in your saml response file.
<saml:AttributeStatement>
<saml:Attribute *Name="Email"*
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">andreas.birkestedt at telenor.se</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute *Name="TNumber"*
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">T728145</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement><quote author="yoxler">
To pass it to the header to apache, just update your attribute-map.xml file
like:
<Attribute name="*Email*" id="email"/>
<Attribute name="*TNumber*" id="number"/>
Over here, mapped your *name* attribute with SAML response name attribute
and set Id as an identifier which you want to read in your code as a header.
Eg:
To read email in you code,
String email = request.getHeader("email");
Thanks,
Abdul.
On Mon, Mar 6, 2017 at 7:21 PM, yoxler <andreas.birkestedt at telenor.com>
wrote:
> Hi,
>
> I'm using Shibbolet service provider and have difficult to forward
> attributes in the header to apache.
>
> I do not know how to configure attribute-map.xml and/or
> attribute-policy.xml
>
> Attaching the SAML response from the IDP:
> saml_response.xml
> <http://shibboleth.1660669.n2.nabble.com/file/n7631784/saml_response.xml>
>
> What I want to fetch is EMail(test at gmail.com) and TNumber(123456789).
>
> Some help in adjusting these files would be very much appreciated.
>
> Best regards
> Andreas
>
>
>
> --
> View this message in context: http://shibboleth.1660669.n2.
> nabble.com/Forward-attribute-to-application-tp7631784.html
> Sent from the Shibboleth - Users mailing list archive at Nabble.com.
> --
> 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/20170306/9c3e6af9/attachment.html>
More information about the users
mailing list