Headers no coming back to Apache Shibboleth Service Provider
Peter Schober
peter.schober at univie.ac.at
Tue Nov 24 05:50:06 EST 2015
* Cahill, Charles (GE Appliances) <Charles.Cahill at ge.com> [2015-11-24 03:37]:
> Can anyone give me an idea why headers are coming back to my 3rd
> party SAML 2.0 clients but dont seem to be coming back to my Apache
> Service Provider configurations.
There is no connection whatsoever among those, as HTTP Request Headers
is not what is being sent to those other SAML SPs, but SAML
assertions. Everything else is local to the SP.
> ShibUseHeaders On
That's not recommended (as per the docs) but should be sufficient,
i.e., the mod_headers directives for explicitly setting attributes are
not needed.
Possibly that's also what breaks this, as you first tell mod_shib to
use headers, not environment variables, and then tell mod_headers to
populate headers from certain environment variables. So you're likely
doing too much.
Also and more fatally, you're setting those headers on the virtual
host level but you only protect the location /NPI/, so those
environment variables can never be there for access to e.g. / or /foo
If it doesn't work (whatever that means in detail) when accessing
/NPI/ that's a different / another error from headers not showing up
when accessing / or /foo.
Check the documentation, NativeSPGettingStarted, then follow the link
to Apache httpd on how to enable attributes in other locations without
enforcing protection there ("lazy sessions").
TL;DR: authtype shibboleth, require shibboleth (depending on httpd version).
Finally, this is on a plain http vhost (port 80) so either your
virtualization will be broken (if you're offloading TLS) or people
will get security warnings from their browsers during SSO due to the
HTTP POST from the (hopefully) HTTPS-secured IDP to the plain-HTTP SP.
So don't do that.
-peter
More information about the users
mailing list