imi / shibboleth-contao-login-client-bundle
Contao Shibboleth Login Client
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
Type:contao-bundle
Requires
- php: ^8.1
- contao/core-bundle: ^4.13
- juststeveking/uri-builder: ^3.0
Requires (Dev)
- contao/easy-coding-standard: ^5.0
- contao/manager-plugin: ^2.3.1
- contao/test-case: ^4.6
- phpunit/phpunit: ^9.3
- symfony/phpunit-bridge: ^5.4
README
Some notes about installing the Apache module are in INSTALL-SERVER.md
Prerequisites
- shibd / mod_shib is installed
- The Shibboleth login handler is available in
/Shibboleth.sso/Login
(this is the default in mod_shib) - Verify that the login works in general by opening
/Shibboleth.sso/Login
. - The module currently expects the following fields to be set in the
env
by the Apache shibd module:REDIRECT_unscoped-affiliation REDIRECT_uid REDIRECT_sn REDIRECT_mail REDIRECT_cn
Installation
- Install the package via composer
- Add the frontend module to your page for the frontend login
Configuration
Add to config/config.yaml
(see config/config.yaml for all options)
shibboleth_auth_client: shibboleth: auto_create_frontend_user: false
Development
Testing
CREATE DATABASE contaoshibboleth
composer install
(in the module directory)vendor/bin/phpunit
Acknowledgements
-
Thanks to @markocupic who wrote the SAC Login Bundle which this module is heavily based on.
-
Thanks to @aschempp who wrote Contao integration tests and the GitHub pipeline settings which we used as a base for our tests.