Workshop Shibbolizing An Application
In this guide, we will write a Java Server Page (JSP) application that will be protected by Shibboleth.
The JSP is a simply "reflector" that will echo back attributes that was sent over by the Shibboleth
IdP.
This is to demonstrate how an actual application that is to be shibbolized can be modified in the same way.
The attributes that it obtains via Shibboleth, can then be used by the application for
AuthZ? decisions.
Prerequisites
- You have installed on an IdP following the instructions here.
- You have installed a Shibboleth Service Provider following the instructions here.
This is the machine where we will deploy our JSP application.
- Java 1.5.x with JAVA_HOME environment set up to point to this location.
- tomcat 5, apache2, mod_jk are installed and configured
Set environment
<Connector port="8009" address="127.0.0.1" request.tomcatAuthentication="false"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
Deploy Demo JSP application
Protect the JSP Application with Shibboleth
- Edit the ssl virtual host, "/etc/apache2/sites-available/003*" file.
Just before the closing VirtualHost? element, add the following block:
<Location /jsp-examples/demo.jsp>
AuthType shibboleth
ShibRequireSession On
require valid-user
</Location>
- Test your newly installed Shibboleth SP application by opening a browser from you local computer
and point it to the URL "https://MY_DNS/jsp-examples/demo.jsp". When redirected to the WAYF, select your IdP,
log in with your credentials and you should then see the reflector page indicating the attributes being sent
from the IdP to the SP and then onto your application.
to top