<div dir="ltr"><div>So, you have the following AttributeStatement in your saml response file.</div><div><br></div><div><font color="#351c75"><saml:AttributeStatement></font></div><div><font color="#351c75"><saml:Attribute <b>Name="Email"</b> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"></font></div><div><font color="#351c75"><saml:AttributeValue xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xsi:type="xs:string"><a href="mailto:andreas.birkestedt@telenor.se">andreas.birkestedt@telenor.se</a></saml:AttributeValue></font></div><div><font color="#351c75"></saml:Attribute></font></div><div><font color="#351c75"><saml:Attribute <b>Name="TNumber"</b> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"></font></div><div><font color="#351c75"><saml:AttributeValue xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xsi:type="xs:string">T728145</saml:AttributeValue></font></div><div><font color="#351c75"></saml:Attribute></font></div><div><font color="#351c75"></saml:AttributeStatement><quote author="yoxler"></font></div><div><font color="#351c75"><br></font></div><div><font color="#351c75">To pass it to the header to apache, just update your attribute-map.xml file like:</font></div><div><font color="#351c75"><div> </div><div> <Attribute name="<b>Email</b>" id="email"/></div><div> <Attribute name="<b>TNumber</b>" id="number"/></div></font><br>Over here, mapped your <b>name</b> attribute with SAML response name attribute and set Id as an identifier which you want to read in your code as a header.<br>Eg:</div><div>To read email in you code,</div><div> String email = request.getHeader("<span style="background-color:rgb(245,246,245);color:rgb(53,28,117)">email</span>");</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Thanks,<br>Abdul.<br><br><br></div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 6, 2017 at 7:21 PM, yoxler <span dir="ltr"><<a href="mailto:andreas.birkestedt@telenor.com">andreas.birkestedt@telenor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I'm using Shibbolet service provider and have difficult to forward<br>
attributes in the header to apache.<br>
<br>
I do not know how to configure attribute-map.xml and/or attribute-policy.xml<br>
<br>
Attaching the SAML response from the IDP:<br>
saml_response.xml<br>
<<a href="http://shibboleth.1660669.n2.nabble.com/file/n7631784/saml_response.xml" rel="noreferrer">http://shibboleth.1660669.n2.<wbr>nabble.com/file/n7631784/saml_<wbr>response.xml</a>><br>
<br>
What I want to fetch is EMail(<a href="mailto:test@gmail.com">test@gmail.com</a>) and TNumber(123456789).<br>
<br>
Some help in adjusting these files would be very much appreciated.<br>
<br>
Best regards<br>
Andreas<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://shibboleth.1660669.n2.nabble.com/Forward-attribute-to-application-tp7631784.html" rel="noreferrer">http://shibboleth.1660669.n2.<wbr>nabble.com/Forward-attribute-<wbr>to-application-tp7631784.html</a><br>
Sent from the Shibboleth - Users mailing list archive at Nabble.com.<br>
<span class="gmail-HOEnZb"><font color="#888888">--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.<wbr>net</a><br>
</font></span></blockquote></div><br></div></div>