The initial focus of the consent form can be set by setting the 'focus'-attribute to either
'yes' or 'no'.
Different storage backends can be configured by setting the 'store'-attribute. The'store'-attribute
is on the form :, and refers to the class sspmod__Consent_Store_. For
examples, see the built-in modules 'consent:Cookie' and 'consent:Database', which can be found
under modules/consent/lib/Consent/Store.
Example - minimal:
'authproc' => array(
'consent:Consent',
),
Example - save in cookie:
'authproc' => array(
array(
'consent:Consent',
'store' => 'consent:Cookie',
),
Example - save in MySQL database:
'authproc' => array(
array(
'consent:Consent',
'store' => array(
'consent:Database',
'dsn' => 'mysql:host=db.example.org;dbname=simplesaml',
'username' => 'simplesaml',
'password' => 'secretpassword',
),
),
),
Example - initial focus on yes-button:
'authproc' => array(
array('consent:Consent', 'focus' => 'yes'),
),