Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

SimpleSAMLphp Metadata Configuration

SimpleSAMLphp includes a metarefresh module that will automatically refresh and verify federation metadata. The following example fetches the production metadata aggregate. See the Metadata Aggregates wiki page for other options.

Before you can verify the XML signature on a metadata aggregate, you need an authentic copy of the InCommon Metadata Signing Certificate. Do this first, before configuring simpleSAMLphp for metadata refresh.

The relevant portion of a sample configuration file (config-metarefresh.php) is shown below:

Code Block
languagePHP
titleConfigure the metarefresh module included with SimpleSAMLphp 1.11 (and later)
'incommon' => array(
	'cron'  => array('frequent'),
	'sources'   => array(
		array(
			// See: https://spaces.at.internet2.edu/display/InCCollaborate/Phase+1+Implementation+Plan
			// Changed by visser@terena.org on 19 Dec 2013
			'src'   => 'http://md.incommon.org/InCommon/InCommon-metadata.xml',
			// See: https://spaces.at.internet2.edu/display/InCFederation/Metadata+Signing+Certificate
			'validateFingerprint' => '7D:B4:BB:28:D3:D5:C8:52:E0:80:B3:62:43:2A:AF:34:B2:A6:0E:DD',
			'template'  => array(
				'tags'  => array('all', 'incommon'),
				'authproc'  => array(
					51  => array('class' => 'core:AttributeMap', 'oid2name'),
				),
				'redirect.sign'     => TRUE,
				'metadata.sign.enable' => TRUE,
			),
			// We already have a ProtectNetwork entry in the guest options
			'blacklist' => array(
				'urn:mace:incommon:idp.protectnetwork.org',
			),
		),
	),
	'outputDir' =>  'metadata/metarefresh/incommon',
	'outputFormat'  => 'flatfile',
),