From a9d90b1d6cfa0d6a8071ce73bb2f7a9a3c9894e1 Mon Sep 17 00:00:00 2001 From: Ivan Novakov Date: Fri, 10 May 2013 13:57:00 +0200 Subject: [PATCH] Update README.md --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a8d5b1..ae88208 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,62 @@ This plugin is an extended version of the plugin by rsheshi@gmail.com (see below Additional features has been added: * auto create users using Shibboleth attributes (email, first name, last name) -* auto update users upon login +* auto update user information upon login * added options to specify the headers (Shibboleth attributes) to be used for extracting email, first name and last name +* basic attribute to role mapping + +Requirements +------------ + +* Apache 2.x with mod_ssl and mod_proxy_ajp +* Shibboleth SP 2.x + +Introduction +------------ + +Currently, there is no native Java Shibboleth service provider. If you need to protect your Java web +with Shibboleth, you have to run Apache with mod_shib in front of your servlet container (Tomcat, JBoss, ...). +The protected application must not be accessible directly, it must be run on a private address. Apache will intercept +requests, and after performing all authentication related tasks, it will pass the request to the backend servlet +container using AJP (Apache JServ Protocol). + +Shibboleth Service Provider +--------------------------- + +A standard Shibboleth Service Provider instance may be used with one difference - the attribute preffix must bes +set to "AJP_", otherwise user attributes from Shibboleh will not be accessible in the application. + + + + +Apache configuration +-------------------- + +First, we need to set the AJP communication with the backend in our virtual host configuration: + + ProxyPass / ajp://localhost:8009/ + ProxyPassReverse / ajp://localhost:8009/ + +Then we'll configure Shibboleth to be "activated" for the whole site: + + + AuthType shibboleth + require shibboleth + + +And require a Shibboleth session at the "login" location: + + + AuthType shibboleth + ShibRequireSession On + require valid-user + + + +Liferay AJP connector +--------------------- Licence @@ -27,4 +81,4 @@ Original plugin By rsheshi@gmail.com: -http://code.google.com/p/liferay-shibboleth-plugin/ \ No newline at end of file +http://code.google.com/p/liferay-shibboleth-plugin/