Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 3.14 KB

README.md

File metadata and controls

97 lines (73 loc) · 3.14 KB

ShibbolethAuthLimeSurvey

This plugin enables you to use Shibboleth as authentication mechanism in LimeSurvey.

The current changelog can be found here.

This plugin was tested with the following versions of LimeSurvey:

LimeSurvey 5+ Shibboleth auth plugin

LimeSurvey: http://www.limesurvey.org/

PREREQUISITES

  • Running installation of LimeSurvey 5 or 6
  • libapache2-mod-shib2 -> Running Shibboleth SP
  • git

INSTALL PLUGIN

In the following example the LimeSurvey working directory is /var/www/limesurvey

To install this plugin you have to create a folder "ShibbolethAuthLime" into folder /plugins/ of your LimeSurvey installation and copy into that folder the file "ShibbolethAuth.php":

cd /var/www/limesurvey/plugins
mkdir ShibbolethAuthLime
cd ShibbolethAuthLime
git clone https://github.com/stevleibelt/ShibbolethAuthLimeSurvey

ACTIVATE PLUGIN FROM ADMIN PANEL

Now you can activate and configure the new installed plugin

CONFIGURE APACHE2 FOR SHIBBOLETH AUTHENTICATION

You have two alternatives:

Protect frontend and admin panel with Shibboleth To protect frontend and admin panel you can add the following to apache2 configuration:

   <Location />
             AuthType shibboleth
             ShibRequireSession On
             require valid-user
   </Location>

Protect only admin panel with Shibboleth With this method you will be able to protect only the admin panel, add the following to apache2 configuration:

   <Location /admin>
             AuthType shibboleth
             ShibRequireSession On
             require valid-user
   </Location>

   <Location />
             AuthType shibboleth
             ShibRequestSetting requireSession false
             ShibUseHeaders On
             Require shibboleth
  </Location>

Development notes

  • After code changes, please run:
composer check
./vendor/bin/rector process
./vendor/bin/php-cs-fixer fix ShibbolethAuthLime.php

Links

Contributers