Skip to content
Snippets Groups Projects
Commit 81640b27 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding documentation on consent module

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1274 44740490-163a-0410-bde0-09ae8108e29a
parent 268718e4
No related branches found
No related tags found
No related merge requests found
Installing and configuring the consent module
=============================================
The consent module is implemented as an Authentication Processing Filter. That means it can be configured in the global config.php file or the SP remote or IdP hosted metadata.
It is recommended to run the consent module at the IdP, and configure the filter to run after all attribute mangling filters is completed, to show the user the exact same attributes that are sent to the SP.
Setting up a database
---------------------
Here is the initialization SQL script for PostgreSQL
CREATE TABLE consent (
consent_date TIMESTAMP NOT NULL,
usage_date TIMESTAMP NOT NULL,
hashed_user_id VARCHAR(80) NOT NULL,
service_id VARCHAR(255) NOT NULL,
attribute VARCHAR(80) NOT NULL,
UNIQUE (hashed_user_id, service_id)
);
Configuring the processing filter
---------------------------------
Example config using PostgreSQL database:
90 => array(
'class' => 'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'pgsql:host=sql.uninett.no;dbname=andreas_consent',
'username' => 'simplesaml',
'password' => 'sdfsdf',
),
'focus' => 'yes',
'checked' => TRUE
),
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment