Skip to content
Snippets Groups Projects
Commit 4b6ea53f authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Merge pull request #219 from peter-/patch-1

Use $metadata array for example IDP and SP metadata
parents 7d76408f 49e28155
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,7 @@ If you want to setup a SAML 2.0 IdP for Google Apps, you need to configure two m ...@@ -135,7 +135,7 @@ If you want to setup a SAML 2.0 IdP for Google Apps, you need to configure two m
This is the configuration of the IdP itself. Here is some example config: This is the configuration of the IdP itself. Here is some example config:
// The SAML entity ID is the index of this config. Dynamic:X will automatically generate an entity ID (Reccomended) // The SAML entity ID is the index of this config. Dynamic:X will automatically generate an entity ID (Reccomended)
'__DYNAMIC:1__' => array( $metadata['__DYNAMIC:1__'] => array(
// The hostname of the server (VHOST) that this SAML entity will use. // The hostname of the server (VHOST) that this SAML entity will use.
'host' => '__DEFAULT__', 'host' => '__DEFAULT__',
...@@ -160,7 +160,7 @@ In the (`saml20-sp-remote.php`) file we will configure an entry for Google Apps ...@@ -160,7 +160,7 @@ In the (`saml20-sp-remote.php`) file we will configure an entry for Google Apps
* at Google Apps. E.g. if your google account is foo.com, and you have a user with email john@foo.com, then you * at Google Apps. E.g. if your google account is foo.com, and you have a user with email john@foo.com, then you
* must set the simplesaml.nameidattribute to be the name of an attribute that for this user has the value of 'john'. * must set the simplesaml.nameidattribute to be the name of an attribute that for this user has the value of 'john'.
*/ */
'google.com' => array( $metadata['google.com'] => array(
'AssertionConsumerService' => 'https://www.google.com/a/g.feide.no/acs', 'AssertionConsumerService' => 'https://www.google.com/a/g.feide.no/acs',
'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress', 'NameIDFormat' => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
'simplesaml.nameidattribute' => 'uid', 'simplesaml.nameidattribute' => 'uid',
......
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