Passing & Accessing Attributes with Tomcat
Peter Schober
peter.schober at univie.ac.at
Wed Mar 30 11:12:56 EDT 2016
* Lewellyn, Jared <jlewelly at bloomu.edu> [2016-03-30 17:08]:
> My problem with passing and accessing attributes continues. Does
> anyone have any experience with accessing attributes provided by
> Shibboleth?
Everyone running the SP, so maybe 50% if this list's population?
> In doing some testing I setup a simple PHP page and attempted to
> access: $_SERVER['Shib_Affiliation'] but nothing is outputted.
> A quick check of Shibboleth.sso/Session reveals that the
> affiliation, and eppn are present. I can see them with
> ShowAttributeValues set to True
Then you're using the wrong keys to the PHP superglobal array, i.e.,
if /Shibboleth.sso/Session says "affiliation" is set, then you'd have
to look for $_SERVER['affiliation'], too.
Printing out all of $_SERVER would quickly make that obvious.
-peter
More information about the users
mailing list