Reading a saml assertion attributes in SP

Iraklis.Symeonidis hsimeoni at gmail.com
Tue Apr 8 05:28:42 EDT 2014


ps: I tried to be as much descriptive for that quite simple question for you
guys. I hope is not to long ..!


I would like to read the saml assertion in SP and more specifically the
attributes that are transferred from the IdP to SP. I have read and tried
two solutions successfully. One is via the logs (shibd.log) and the other
one via apache (http).

What I have tried:
1. For the first one I turned up the SP's shibd.logger to DEBUG and
uncommented the PROTOCOL_MESSAGE logger in the IdP's logging.xml file.
(https://lists.internet2.edu/sympa/arc/shibboleth-users/2008-05/msg00113.html)
--> I get both attributes and its values.


2. For the second one via http I tried two solutions

2.1 I set the showAttributeValues="true" in shibboleth2.xml and checked the
values on the web, via
https://your.example.org/Shibboleth.sso/Session

2.2. Creating a php (test.php) file calling the function phpinfo() and
envirornmental variables print_r($_SERVER). 

My questions

1. How can I get the saml attributes clean and direct from the shibboleth SP
without the use of http (apache) ?
ps1: I would prefer a C++ example
ps2: I have seen samples of codes with the request.getHeader(name) function.
Should I use Java Servlets for that?
ps3: Do you think that this code will help ?

2. Running the 2.2 solution (phpinfo and $_SERVER) I get two different
responses when I run the scripts via http and via command line. For
instance, when I run the php file (test.php) I get a full detail of
attributes and environmental variables whereas I do get nothing of the shib
values when I run the code (test.php) via command line (php test.php). Why
is that happening ??



--
View this message in context: http://shibboleth.1660669.n2.nabble.com/Reading-a-saml-assertion-attributes-in-SP-tp7598496.html
Sent from the Shibboleth - Developers mailing list archive at Nabble.com.


More information about the dev mailing list