Download the PHP package cscfi/attribute-test-service without Composer
On this page you can find all versions of the php package cscfi/attribute-test-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cscfi/attribute-test-service
More information about cscfi/attribute-test-service
Files in cscfi/attribute-test-service
Package attribute-test-service
Short Description SAML Attribute test service for shibboleth
License MIT
Homepage https://github.com/CSCfi/Attribute-Test-Service
Informations about the package attribute-test-service
SAML Attribute Test Service plugin for CakePHP
Requirements
- apache2
- shibboleth service provider
- php >=5.5.9
- cakephp/cakephp : ~3.2
- friendsofcake/bootstrap-ui : ^0.5.0
Functionalities
- Populates all active attributes from the /etc/shibboleth/attribute-map.xml
- Basic add/delete functionality for attributes
- Optional validation regex for attributes
- Comparation of received attributes against attributes in database with validation
- Stores names of released attributes and validation status for each individual user (persistent-id, schachomeorganization stored as received)
Preconditions
Apache2 webserver installed with libapache2-mod-shib2
modify /etc/shibboleth/shibboleth2.xml
Protect application with shibboleth in Apache virtualhost configuration, this one uses lazy login.
Installation
CakePHP
Download and install composer
Create CakePHP project
Configure database
from just baked project directory www/config/app.php, replace following lines to use sqlite datasource.
And make sure that cakephp has access to directory where database will be created (example below is too permissive).
Install attribute-test-service plugin
Configure Bootstrap framework
Make your AppView class extend BootstrapUI\View\UIView (src/View/AppView.php).
Authorization (Shibboleth handles the authentication)
To use Auth component with shibboleth SAML authentication. In your project 'src/Controller/AppController.php' modify accordingly.
Enable login/logout buttons in 'src/Template/Layout/TwitterBootstrap/dashboard.ctp'
To show also Auth related flash messages, make sure you have both renders in your 'src/Template/Layout/TwitterBootstrap/dashboard.ctp'
Now you should be good to go. Attribute plugin should be found from https://YOUR_SITE/attribute/attributes/index.
All versions of attribute-test-service with dependencies
cakephp/cakephp Version ~3.2
mobiledetect/mobiledetectlib Version 2.*
cakephp/migrations Version ~1.0
cakephp/plugin-installer Version *
friendsofcake/bootstrap-ui Version ^0.5.0
psy/psysh Version @stable
cakephp/debug_kit Version ~3.2
cakephp/bake Version ~1.1