From 04b30db747d12393ca7217cc765c7445c3167c33 Mon Sep 17 00:00:00 2001
From: Mads Freek Petersen <freek@wayf.dk>
Date: Thu, 30 Apr 2009 11:27:05 +0000
Subject: [PATCH] consentadmin.php was empty at last commit.

Added consentAdmin.txt


git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1482 44740490-163a-0410-bde0-09ae8108e29a
---
 .../dictionaries/consentadmin.php             | 200 ++++++++++++++++++
 modules/consentAdmin/docs/ConsentDocs.txt.old |   2 +-
 modules/consentAdmin/docs/consentAdmin.txt    |  73 +++++++
 3 files changed, 274 insertions(+), 1 deletion(-)
 create mode 100644 modules/consentAdmin/docs/consentAdmin.txt

diff --git a/modules/consentAdmin/dictionaries/consentadmin.php b/modules/consentAdmin/dictionaries/consentadmin.php
index e69de29bb..4a002f1f2 100644
--- a/modules/consentAdmin/dictionaries/consentadmin.php
+++ b/modules/consentAdmin/dictionaries/consentadmin.php
@@ -0,0 +1,200 @@
+<?php
+
+// consentadmin dictionary
+
+/*
+	'' => array(
+		'en' => '',
+		'no' => '',
+		'nn' => '',
+        'da' => '',
+		'es' => '',
+		'fr' => '',
+		'de' => '',
+		'nl' => '',
+		'lu' => '',
+		'sl' => '',
+	),
+
+
+* 
+* */
+
+
+$lang = array(
+			  'sp_empty_name' => array( 
+									   'en' => '(name not specified)', 
+									   'no' => '(namn ikke spesifisert)', 
+									   'nn' => '(name not specified)', 
+									   'da' => '(navn ikke angivet)', 
+									   'en' => '(name not specified)', 
+									   'fr' => '(name not specified)', 
+									   'de' => '(name nicht definiert)', 
+									   'nl' => '(name not specified)', 
+									   'lu' => '(name not specified)', 
+									   'sl' => '(name not specified)', 
+									  ), 
+			  'sp_empty_description' => array( 
+											  'en' => '(no description)', 
+											  'no' => '(ingen beskrivelse)', 
+											  'nn' => '(no description)', 
+											  'da' => '(ingen beskrivelse)', 
+											  'es' => '(no description)', 
+											  'fr' => '(no description)', 
+											  'de' => '(no description)', 
+											  'nl' => '(no description)', 
+											  'lu' => '(no description)', 
+											  'sl' => '(no description)', 
+											 ),
+
+			  // WAYF: Additional attributes START
+
+			  'attribute_org' => array(
+									   'en' => 'Organisation',
+									   'da' => 'Organisation',
+									  ),
+
+			  'added' => array(
+							   'en' => 'Consent Added',
+							   'da' => 'Samtykke givet',
+							  ),
+
+			  'removed' => array(
+								 'en' => 'Consent Removed',
+								 'da' => 'Samtykke slettet',
+	),
+
+	'updated' => array(
+		'en' => 'Consent Updated',
+		'da' => 'Samtykke Opdateret!!!',
+	),
+
+	'unknown' => array(
+		'en' => 'Unknown ...',
+		'da' => 'Ukendt ...',
+	),
+
+	'attribute_id' => array(
+		'en' => 'Identity',
+		'da' => 'Identitet',
+	),
+
+	'attribute_injected' => array(
+		'en' => 'Injected attribut',
+		'da' => 'Injiceret attribut',
+	),
+	
+// WAYF: Additional attributes END
+	
+
+// Text
+
+	'show' => array(
+		'en' => 'Show',
+        'da' => 'Vis',
+	),
+
+	'hide' => array(
+		'en' => 'Hide',
+        'da' => 'Skjul',
+	),
+	
+	'attributes_text' => array(
+		'en' => 'attributes',
+        'da' => 'attributter',
+	),
+	
+
+	'consentadmin_header' => array(
+		'en' => 'Consent Administration',
+        'da' => 'Administrer dine samtykker',
+	),
+
+	'consentadmin_description1' => array(
+		'en' => 'Here you can view and edit your consent for the Service Providers.',
+
+        'da' => '
+ WAYF videregiver kun oplysninger til eksterne tjenester, hvis du giver dit samtykke til det. Hvilke oplysninger det drejer sig om, varierer alt efter hvad tjenesteudbyderen har behov for. Det kan for eksempel være:
+<ul>
+<li>	Dit navn
+<li>	Din e-mail-adresse
+<li>	Din institution
+<li>	Etc.
+</ul>
+
+Hvis du sætter et flueben ud for <b>Husk dette samtykke</b>, vil du ikke blive spurgt, næste gang du besøger tjenesteudbyderen. 
+SĂĄ husker WAYF, at du allerede har givet samtykke til at videregive oplysninger til tjenesteudbyderen. 
+<p>Nedenfor er opført de tjenester, som du for øjeblikket har givet løbende samtykke til:</a>
+', //da
+		),
+
+		'consentadmin_description2' => array(
+		'en' => '
+<h3>How to delete your consent</h3>
+Uncheck the box corresponding to the service provider
+
+<h3>Links</h3>
+<ul>
+<li><a href="https://www.wayf.dk">Start</a> </li>
+
+<li><a href="https://www.wayf.dk/FAQ">FAQ</a> </li>
+</ul>
+', // en
+		        'da' => '
+<h3>SĂĄdan sletter du et samtykke</h3>
+Fjern fluebenet ud for tjenesten, samtykket tilhører.
+<h3>Hvilke data gemmer WAYF om dig?</h3>
+<ul>
+<li>	NĂĄr du giver dit samtykke, henter WAYF dine oplysninger fra din institution og sender de relevante videre til tjenesteudbyderen
+<li>	Ingen af oplysningerne gemmes af WAYF
+<li>	Hvis du har bedt WAYF huske dit samtykke, gemmes personhenførbare data heller ikke hos WAYF. Oplysningen om, at du har givet dit samtykke, gemmes på en ikke-personhenførbar måde
+</ul>
+
+<h3>Hvilke rettigheder har du?</h3>
+Du har ret til at trække et samtykke tilbage.
+<h3>Hvor længe gemmes dine samtykker?</h3>
+Et samtykke slettes tre ĂĄr efter, at du sidst har benyttet det.
+<h3>Hvordan beskyttes mine oplysninger?</h3>
+WAYF foretager behandlinger af personoplysninger i henhold til persondataloven (lov nr. 429 af 31. maj 2000 med senere ændringer). Du kan læse nærmere om registreredes rettigheder i persondatalovens afsnit III.
+<a href="http://www.datatilsynet.dk/lovgivning/persondataloven/">Persondataloven</a>
+
+<h3>Links</h3>
+<ul>
+<li><a href="https://www.wayf.dk">Start</a> </li>
+
+<li><a href="https://www.wayf.dk/FAQ">FAQ</a> </li>
+</ul>
+', // da
+	),	
+		
+		
+	'login' => array(
+		'en' => 'login',
+        'da' => 'login',
+	),
+		   		
+	'service_providers_for' => array(
+		'en' => 'Service Providers for',
+        'da' => 'Service Providers for',
+		),
+		
+  
+  
+  'service_provider_header' => array(
+		'en' => 'Service Provider',
+        'da' => 'Service Provider',
+		),
+		
+	'status_header' => array(
+		'en' => 'Consent status',
+        'da' => 'Samtykke status',		
+		),
+		
+	'show_hide_attributes' => array(
+		'en' => 'show/hide attributes',
+        'da' => 'vis/skjul attributter',		
+		),
+		
+);
+
+
diff --git a/modules/consentAdmin/docs/ConsentDocs.txt.old b/modules/consentAdmin/docs/ConsentDocs.txt.old
index 58254a98b..d370aecbe 100644
--- a/modules/consentAdmin/docs/ConsentDocs.txt.old
+++ b/modules/consentAdmin/docs/ConsentDocs.txt.old
@@ -125,4 +125,4 @@ Example:
          	),
  		),
 
- 		
\ No newline at end of file
+ 
\ No newline at end of file
diff --git a/modules/consentAdmin/docs/consentAdmin.txt b/modules/consentAdmin/docs/consentAdmin.txt
new file mode 100644
index 000000000..f847143d9
--- /dev/null
+++ b/modules/consentAdmin/docs/consentAdmin.txt
@@ -0,0 +1,73 @@
+Installing and configuring the consentAdmin module
+==================================================
+
+the consentAdmin module is an addon to the consent module. This emans that
+you can not use the consentAdmin without the consent module. If you have not
+installed and configured the consent module, please do.
+
+  * [How to install and configure the consent module](/conotent/consent-module)
+ 
+The consentAdmin module only works when the consent module is using a 
+database to store the consents.
+
+Setting up the consentAdmin module
+----------------------------------
+
+The first thing you need to do is to enable the consentAdmin module:
+
+    touch modules/consentAdmin/enable
+
+Next you nedd to copy the module config file to the config directory:
+
+    cp modules/consentAdmin/config-templates/module_config.php config
+
+Then you will need to set up the database. The consentAdmin uses the same
+table as the consent module, but you still need the set the correct
+credentials in the cinfig file. Example:
+
+	'consentadmin'  => array(
+		'consent:Database',
+		'dsn'		=>	'mysql:host=sql.uninett.no;dbname=andreas_consent',
+		'username'	=>	'simplesaml', 
+		'password'	=>	'sdfsdf',
+	),
+
+Notice that credentials usualy is the same as for the consent module, but
+can be different.
+
+Go to the frontpage of your SimpleSAMLphp installation. A link to the
+consentAdmin has been added to the frontpage.
+
+Setting optional parameters
+---------------------------
+
+In order to make the consentAdmin module work together with the consent
+module correctly, you need to set the configuration 'attributes.hash'
+according to the value of 'includeValues' configuration in the consent
+module.
+
+You should also set the 'relaystate' configuration in orde to pass on your
+users when the press the 'Logout' link.
+
+What does consentAdmin do
+-------------------------
+
+When logging into the consentAdmin module, you will be presented with a list
+of all services connected to the IdP together with at checkbox indicating
+whether the user has given consent to the given service. By clicking the
+'Show attributes', you will be presented with a list of attributes that are
+released to the service, when the user is accessing that service.
+consentAdmin are running the processing filters that have been defined for
+each service.
+
+Processing filters
+------------------
+
+The call to these filters are made with an isPassive request, with means that
+no filter is allowed to make userinteraction. 
+
+It is up to the developers of the filters to respect the isPassive request.
+The prefered thing to do is to make your setup so that only filters that
+modify attributes is run. Othervise it is recommended that tha developers of
+filters to throw a 'NoPassive' exception, if the filter can not run without
+userinteraction.
-- 
GitLab