Skip to content
Snippets Groups Projects
Commit 8954a20f authored by Hans Zandbelt's avatar Hans Zandbelt
Browse files

add support for dynamically generated WS-Fed realm/entity identifiers

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1064 44740490-163a-0410-bde0-09ae8108e29a
parent a2394640
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Meta ...@@ -140,6 +140,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerFlatFile extends SimpleSAML_Meta
return $baseurl . 'shib13/idp/metadata.php'; return $baseurl . 'shib13/idp/metadata.php';
} elseif($set === 'shib13-sp-hosted') { } elseif($set === 'shib13-sp-hosted') {
return $baseurl . 'shib13/sp/metadata.php'; return $baseurl . 'shib13/sp/metadata.php';
} elseif($set === 'wsfed-sp-hosted') {
return 'urn:federation:' . SimpleSAML_Utilities::getSelfHost();
} else { } else {
throw new Exception('Can not generate dynamic EntityID for metadata of this type: [' . $set . ']'); throw new Exception('Can not generate dynamic EntityID for metadata of this type: [' . $set . ']');
} }
......
<?php <?php
/*
* WS-Federation Meta data for simpleSAMLphp
*
* The WS-Federation SP Hosted config is used by the WS-Federation SP to identify itself.
*
* Required fields:
* - host
*/
$metadata = array( $metadata = array(
'urn:federation:simplesamlphp:localhost' => array( /*
'host' => 'localhost', * Example of a hosted SP
), */
'__DYNAMIC:1__' => array(
'host' => '__DEFAULT__'
)
); );
?> ?>
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