summaryrefslogtreecommitdiffstats
path: root/inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php')
-rw-r--r--inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php65
1 files changed, 65 insertions, 0 deletions
diff --git a/inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php b/inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php
new file mode 100644
index 0000000..18bfd30
--- /dev/null
+++ b/inc/simplesamlphp/modules/metarefresh/config-templates/config-metarefresh.php
@@ -0,0 +1,65 @@
+<?php
+
+$config = array(
+
+ /*
+ * Global blacklist: entityIDs that should be excluded from ALL sets.
+ */
+ #'blacklist' = array(
+ # 'http://my.own.uni/idp'
+ #),
+
+ /*
+ * Conditional GET requests
+ * Efficient downloading so polling can be done more frequently.
+ * Works for sources that send 'Last-Modified' or 'Etag' headers.
+ * Note that the 'data' directory needs to be writable for this to work.
+ */
+ #'conditionalGET' => TRUE,
+
+ 'sets' => array(
+
+ 'kalmar' => array(
+ 'cron' => array('hourly'),
+ 'sources' => array(
+ array(
+ /*
+ * entityIDs that should be excluded from this src.
+ */
+ #'blacklist' => array(
+ # 'http://some.other.uni/idp',
+ #),
+
+ /*
+ * Whitelist: only keep these EntityIDs.
+ */
+ #'whitelist' => array(
+ # 'http://some.uni/idp',
+ # 'http://some.other.uni/idp',
+ #),
+
+ #'conditionalGET' => TRUE,
+ 'src' => 'https://kalmar2.org/simplesaml/module.php/aggregator/?id=kalmarcentral&set=saml2&exclude=norway',
+ 'validateFingerprint' => '59:1D:4B:46:70:46:3E:ED:A9:1F:CC:81:6D:C0:AF:2A:09:2A:A8:01',
+ 'template' => array(
+ 'tags' => array('kalmar'),
+ 'authproc' => array(
+ 51 => array('class' => 'core:AttributeMap', 'oid2name'),
+ ),
+ ),
+ ),
+ ),
+ 'expireAfter' => 60*60*24*4, // Maximum 4 days cache time.
+ 'outputDir' => 'metadata/metadata-kalmar-consuming/',
+
+ /*
+ * Which output format the metadata should be saved as.
+ * Can be 'flatfile' or 'serialize'. 'flatfile' is the default.
+ */
+ 'outputFormat' => 'flatfile',
+ ),
+ ),
+);
+
+
+