Not getting attributes in headers
Bryan Wooten
bryan.wooten at utah.edu
Thu Jul 14 09:13:38 EDT 2016
All,
I am not sure if this is my application's problem or an SP issue.
I have a trivial SP that simply displays the attributes returned from the IDP. It assumes the attributes are returned as header elements.
Using SAML Chrome plugin I see attributes returned to the browser like:
<saml2:Attribute FriendlyName="sn" Name="urn:oid:2.5.4.4" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">WOOTEN</saml2:AttributeValue>
My java code only displays this Shib cookie element: _shibsession_64656661756c7468747470733a2f2f69646d2d332e6163732e757461682e6564752f73686962626f6c657468=_0cd6e5a0e17853a077b2ee6e586eeaed
I also display other header elements like referrer:
https://testidp.acs.utah.edu/idp/profile/SAML2/Redirect/SSO
This app was working fine when the SP was pointing to our Shib3 IDP instance, but we changed the SP to use or Shib2 test IDP.
This is my java code:
hile (headerNames.hasMoreElements()) {
out.println("<tr><th>");
String headerName = headerNames.nextElement();
out.println(headerName);
out.println("</th><td>");
Enumeration<String> headers = request.getHeaders(headerName);
while (headers.hasMoreElements()) {
out.println("<tr><th>");
String headerValue = headers.nextElement();
out.println(headerValue);
out.println("</td></tr>");
}
Any help appreciated.
Bryan Wooten
Tel: (801)585-9323
Email: bryan.wooten at utah.edu<mailto:bryan.wooten at utah.edu>
[Identity & Access Management_combined centered]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160714/373694ec/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 6374 bytes
Desc: image001.jpg
URL: <http://shibboleth.net/pipermail/users/attachments/20160714/373694ec/attachment-0001.jpg>
More information about the users
mailing list