Get Shibboleth environment variables with Python
cantor.2 at osu.edu
Tue May 13 10:58:46 EDT 2014
>How do I capture the Shibboleth environment variables with Python? I¹ve
>written a small script that dumps out all the OS variables which Python
>can see, and it runs immediately after a Shibboleth login. I was
>expecting to see REMOTE_USER at least, but it does not appear.
Well, it will appear if an attribute from the set being provisoned into
REMOTE_USER is actually received.
The first thing to check is if the predefined / fixed variables that are
always set by the SP are set or not, because if they're not, the page
isn't really protected by the SP. Assuming they are, then it's up to you
to debug the attributes received, make sure they're mapped appropriately,
and then they'll be there.
More information about the users