<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0);"><div><font face="Verdana">Hi,</font></div><div><font face="Verdana"><br></font></div><div><font face="Verdana">We have created a salesforce SAML2 identity provider, a part of the response xml from salesforce is added below.</font></div><div><font face="Verdana">Next to this we configured a tomcat with a json file with argument : "principal-attribute": “preferred_username”</font></div><div><font face="Verdana"><br></font></div><div><font face="Verdana">When we do nothing more we get the NameID with the prefix in Tomcat as the logged in user.</font></div><div><font face="Verdana">We like to map the SAML Attribute Name=“email” to the “preferred_username”</font></div><div><font face="Verdana"><br></font></div><div><font face="Verdana">How do we do this?</font></div><div><font face="Verdana"><br></font></div><div><div><font face="Verdana"><saml:Subject xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"></font></div><div><font face="Verdana"> <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">henk.laracker@p*n.nl</saml:NameID></font></div><div><font face="Verdana"> <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"></font></div><div><font face="Verdana"> <saml:SubjectConfirmationData InResponseTo="ID_e44eedb6-2f93-4c7e-aecd-90f355e3cbc3"</font></div><div><font face="Verdana"> NotOnOrAfter="2015-06-02T08:12:07.080Z"</font></div><div><font face="Verdana"> Recipient="https://fr-authtest.planoncloud.com/auth/realms/ciwwa-test/broker/salesforce/endpoint"</font></div><div><font face="Verdana"> /></font></div><div><font face="Verdana"> </saml:SubjectConfirmation></font></div><div><font face="Verdana"> </saml:Subject></font></div><div><font face="Verdana"> <saml:Conditions NotBefore="2015-06-02T08:06:37.080Z"</font></div><div><font face="Verdana"> NotOnOrAfter="2015-06-02T08:12:07.080Z"</font></div><div><font face="Verdana"> xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AudienceRestriction></font></div><div><font face="Verdana"> <saml:Audience>https://fr-authtest.planoncloud.com/auth/realms/ciwwa-test</saml:Audience></font></div><div><font face="Verdana"> </saml:AudienceRestriction></font></div><div><font face="Verdana"> </saml:Conditions></font></div><div><font face="Verdana"> <saml:AuthnStatement AuthnInstant="2015-06-02T08:07:07.080Z"</font></div><div><font face="Verdana"> xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AuthnContext></font></div><div><font face="Verdana"> <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</saml:AuthnContextClassRef></font></div><div><font face="Verdana"> </saml:AuthnContext></font></div><div><font face="Verdana"> </saml:AuthnStatement></font></div><div><font face="Verdana"> <saml:AttributeStatement xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"></font></div><div><font face="Verdana"> <saml:Attribute Name="userId"</font></div><div><font face="Verdana"> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"</font></div><div><font face="Verdana"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</font></div><div><font face="Verdana"> xsi:type="xs:anyType"</font></div><div><font face="Verdana"> >005b0000000jBgI</saml:AttributeValue></font></div><div><font face="Verdana"> </saml:Attribute></font></div><div><font face="Verdana"> <saml:Attribute Name="username"</font></div><div><font face="Verdana"> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"</font></div><div><font face="Verdana"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</font></div><div><font face="Verdana"> xsi:type="xs:anyType"</font></div><div><font face="Verdana"> >henk.laracker@p*n.nl</saml:AttributeValue></font></div><div><font face="Verdana"> </saml:Attribute></font></div><div><font face="Verdana"> <saml:Attribute Name="email"</font></div><div><font face="Verdana"> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"</font></div><div><font face="Verdana"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</font></div><div><font face="Verdana"> xsi:type="xs:anyType"</font></div><div><font face="Verdana"> >henk.laracker@c*e.com</saml:AttributeValue></font></div><div><font face="Verdana"> </saml:Attribute></font></div><div><font face="Verdana"> <saml:Attribute Name="is_portal_user"</font></div><div><font face="Verdana"> NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"</font></div><div><font face="Verdana"> ></font></div><div><font face="Verdana"> <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"</font></div><div><font face="Verdana"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</font></div><div><font face="Verdana"> xsi:type="xs:anyType"</font></div><div><font face="Verdana"> >false</saml:AttributeValue></font></div><div><font face="Verdana"> </saml:Attribute></font></div><div><font face="Verdana"> </saml:AttributeStatement></font></div><div><font face="Verdana"> </saml:Assertion></font></div></div><div><font face="Verdana"><br></font></div><div><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="NL"><font face="Verdana">Met vriendelijke groet / Yours sincerely / Mit freundlichen Grüßen / Très cordialement,</font></span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><font face="Verdana">Henk Laracker<o:p></o:p></font></p><p class="MsoNormal" style="font-size: 11pt; margin: 0cm 0cm 0.0001pt;"><br></p></div></body></html>