From 3b6a04f844b9f32aba6067338ea88a9995eb293f Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 12 Oct 2009 06:36:33 +0000 Subject: [PATCH] docs: Update more metadata examples. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1837 44740490-163a-0410-bde0-09ae8108e29a --- docs/simplesamlphp-idp.txt | 61 +++++++++++++++++--------------------- docs/simplesamlphp-sp.txt | 13 +++----- 2 files changed, 31 insertions(+), 43 deletions(-) diff --git a/docs/simplesamlphp-idp.txt b/docs/simplesamlphp-idp.txt index 745a9a470..79f189e1b 100644 --- a/docs/simplesamlphp-idp.txt +++ b/docs/simplesamlphp-idp.txt @@ -92,7 +92,6 @@ In this setup, this file should contain a single entry: ), ), ); - ?> 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 @@ The IdP is configured by the metadata stored in `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 @@ Adding SPs to the IdP 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. diff --git a/docs/simplesamlphp-sp.txt b/docs/simplesamlphp-sp.txt index d6b8abb7d..a598682f7 100644 --- a/docs/simplesamlphp-sp.txt +++ b/docs/simplesamlphp-sp.txt @@ -30,7 +30,6 @@ This is a minimal authsources.php for a SP: '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 @@ The service provider you are configuring needs to know about the identity provid 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 @@ This is the `idp` option. 'idp' => 'https://openidp.feide.no', ), ); - ?> Exchange metadata with the IdP -- GitLab