Revision: 1837
Author: olavmrk
Date: Sun Oct 11 23:36:33 2009
Log: docs: Update more metadata examples.
http://code.google.com/p/simplesamlphp/source/detail?r=1837
Modified:
/trunk/docs/simplesamlphp-idp.txt
/trunk/docs/simplesamlphp-sp.txt
=======================================
--- /trunk/docs/simplesamlphp-idp.txt Tue Sep 29 04:36:24 2009
+++ /trunk/docs/simplesamlphp-idp.txt Sun Oct 11 23:36:33 2009
@@ -92,7 +92,6 @@
),
),
);
- ?>
This configuration creates two users - `student` and `employee`, with the
passwords `studentpass` and `employeepass`. The username and password is
stored in the array index (`student:studentpass` for the `student`-user.
The attributes for each user is configured in the array referenced by the
index. For the student user, these are:
@@ -111,31 +110,28 @@
`metadata/saml20-idp-hosted.php` and `metadata/shib13-idp-hosted.php`.
This is a minimal configuration of a SAML 2.0 IdP:
- <?php
- $metadata = array(
- '__DYNAMIC:1__' => array(
- /*
- * The hostname for this IdP. This makes it possible to
run multiple
- * IdPs from the same configuration. '__DEFAULT__'
means that this one
- * should be used by default.
- */
- 'host' => '__DEFAULT__',
-
- /*
- * The private key and certificate to use when signing
responses.
- * These are stored in the cert-directory.
- */
- 'privatekey' => 'server.pem',
- 'certificate' => 'server.crt',
-
- /*
- * The authentication source which should be used to
authenticate the
- * user. This must match one of the entries in
config/authsources.php.
- */
- 'auth' => 'example-userpass',
- ),
- );
- ?>
+ <?php
+ $metadata['__DYNAMIC:1__'] = array(
+ /*
+ * The hostname for this IdP. This makes it possible to run
multiple
+ * IdPs from the same configuration. '__DEFAULT__' means that this
one
+ * should be used by default.
+ */
+ 'host' => '__DEFAULT__',
+
+ /*
+ * The private key and certificate to use when signing responses.
+ * These are stored in the cert-directory.
+ */
+ 'privatekey' => 'server.pem',
+ 'certificate' => 'server.crt',
+
+ /*
+ * The authentication source which should be used to authenticate
the
+ * user. This must match one of the entries in
config/authsources.php.
+ */
+ 'auth' => 'example-userpass',
+ );
For more information about available options in the idp-hosted metadata
files, see the [IdP hosted
reference](https://rnd.feide.no/content/idp-hosted-metadata-reference).
@@ -146,14 +142,11 @@
The identity provider you are configuring needs to know about the service
providers you are going to connect to it. This is configured by metadata
stored in `metadata/saml20-sp-remote.php` and
`metadata/shib13-sp-remote.php`. This is a minimal example of a
`metadata/saml20-sp-remote.php` metadata file:
- <?php
- $metadata = array(
- 'https://sp.example.org' => array(
- 'AssertionConsumerService'
=> 'https://sp.example.org/simplesaml/saml2/sp/AssertionConsumerService.php',
- 'SingleLogoutService'
=> 'https://sp.example.org/simplesaml/saml2/sp/SingleLogoutService.php',
- ),
- );
- ?>
+ <?php
+ $metadata['https://sp.example.org'] = array(
+ 'AssertionConsumerService'
=> 'https://sp.example.org/simplesaml/saml2/sp/AssertionConsumerService.php',
+ 'SingleLogoutService'
=> 'https://sp.example.org/simplesaml/saml2/sp/SingleLogoutService.php',
+ );
If you have the metadata of the remote SP as an XML file, you can use the
built-in XML to simpleSAMLphp metadata converter, which by default is
available as `/admin/metadata-converter.php` in your simpleSAMLphp
installation.
=======================================
--- /trunk/docs/simplesamlphp-sp.txt Tue Oct 6 02:35:33 2009
+++ /trunk/docs/simplesamlphp-sp.txt Sun Oct 11 23:36:33 2009
@@ -30,7 +30,6 @@
'saml:SP',
),
);
- ?>
For more information about additional options available for the SP, see
the [`saml:SP`
reference](https://rnd.feide.no/content/saml-service-provider-configuration-reference).
@@ -42,14 +41,11 @@
This is a minimal example of a `metadata/saml20-idp-remote.php` metadata
file:
<?php
- $metadata = array(
- 'https://openidp.feide.no' => array(
- 'SingleSignOnService'
=> 'https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php',
- 'SingleLogoutService'
=> 'https://openidp.feide.no/simplesaml/saml2/idp/SingleLogoutService.php',
- 'certFingerprint'
=> 'c9ed4dfb07caf13fc21e0fec1572047eb8a7a4cb',
- ),
+ $metadata['https://openidp.feide.no'] = array(
+ 'SingleSignOnService'
=> 'https://openidp.feide.no/simplesaml/saml2/idp/SSOService.php',
+ 'SingleLogoutService'
=> 'https://openidp.feide.no/simplesaml/saml2/idp/SingleLogoutService.php',
+ 'certFingerprint'
=> 'c9ed4dfb07caf13fc21e0fec1572047eb8a7a4cb',
);
- ?>
For more information about available options in the idp-remote metadata
files, see the [IdP remote
reference](https://rnd.feide.no/content/idp-remote-metadata-reference).
@@ -77,7 +73,6 @@
'idp' => 'https://openidp.feide.no',
),
);
- ?>
Exchange metadata with the IdP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---