Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Configuring Apache http-server 2.x

If Shibboleth is installed with yum or apt-get, the Apache module mod_shib will be installed and activated. What you need to do next is to determine how the actual service should be protected:

...

 

<Location /myprotectedSP>
  AuthType shibboleth
  ShibRequestSetting requireSession 1
  Require valid-user
</Location>

If the entire site should be protected, you write <Location /> instead of "Location /myprotectedSP"

Handling logins by the Service/Application protected by Shibboleth

The login information from the Identity Provider (user name and other attributes that comes with the assertion) are set as HTTP environment variables by the Apache module. If the Service/Application only wants to know that the user successfully logged in, nothing special has to be done. Shibboleth and mod_shib takes care of that before handling the user over to the Service/Application. If the Service/Application needs to have the attributes sent by the Identity Provider, it needs to be able to read the HTTP environment variables produced by mod_shib.

 

HTTP environment or HTTP headers

Some Services/Applications can't read HTTP environment variables out of the box, e.g. applications written in php. But those applications can read HTTP headers. You can tell Apache that it should deliver the  attributes as HTTP headers (it is done in the configuration file /etc/httpd/conf.d/shib.conf):

...