summaryrefslogtreecommitdiffstats
path: root/php/Attic/examples/sample-sp
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-15 15:59:59 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2004-09-15 15:59:59 +0000
commit2f0a452be39b1ec48a2ce40c3d5d857f31d71a90 (patch)
treebefa46703e480695e550b6ffb43b3c9639cb8832 /php/Attic/examples/sample-sp
parent881bb4d750dbb07cae3d4f8836a6c06ba465272e (diff)
Added sample xml metadata in the distribution
Added a README file, this file explain howto setup a PHP IdP/SP, it's not fully documented yet. Work in progress.
Diffstat (limited to 'php/Attic/examples/sample-sp')
-rw-r--r--php/Attic/examples/sample-sp/Makefile.am20
-rw-r--r--php/Attic/examples/sample-sp/metadata_idp1.xml19
-rw-r--r--php/Attic/examples/sample-sp/metadata_sp1.xml20
-rw-r--r--php/Attic/examples/sample-sp/setup.php49
4 files changed, 84 insertions, 24 deletions
diff --git a/php/Attic/examples/sample-sp/Makefile.am b/php/Attic/examples/sample-sp/Makefile.am
index cbb7aa73..cf6f1b5f 100644
--- a/php/Attic/examples/sample-sp/Makefile.am
+++ b/php/Attic/examples/sample-sp/Makefile.am
@@ -1,4 +1,16 @@
-EXTRA_DIST = admin_user.php index.php logout.php \
- setup.php README assertionConsumer.php \
- login.php register.php
-
+EXTRA_DIST = \
+ admin_user.php \
+ assertionConsumer.php \
+ idp_certificate.pem \
+ idp_metadata.xml \
+ idp_public-key.pem \
+ index.php \
+ login.php \
+ logout.php \
+ register.php \
+ setup.php \
+ sp_certificate.pem \
+ sp_metadata.xml \
+ sp_private-key-raw.pem \
+ sp_public-key.pem \
+ README
diff --git a/php/Attic/examples/sample-sp/metadata_idp1.xml b/php/Attic/examples/sample-sp/metadata_idp1.xml
new file mode 100644
index 00000000..3330c73d
--- /dev/null
+++ b/php/Attic/examples/sample-sp/metadata_idp1.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<EntityDescriptor
+ providerID="https://idp1/metadata"
+ xmlns="urn:liberty:metadata:2003-08">
+ <IDPDescriptor>
+
+ <SingleSignOnServiceURL>https://idp1:1998/singleSignOn</SingleSignOnServiceURL>
+ <SingleSignOnProtocolProfile>http://projectliberty.org/profiles/sso-get</SingleSignOnProtocolProfile>
+
+ <SingleLogoutServiceURL>https://idp1:1998/singleLogout</SingleLogoutServiceURL>
+ <SingleLogoutProtocolProfile>http://projectliberty.org/profiles/slo-idp-soap</SingleLogoutProtocolProfile>
+
+ <RegisterNameIdentifierServiceURL>https://idp1:1998/registerNameIdentifier</RegisterNameIdentifierServiceURL>
+ <RegisterNameIdentifierProtocolProfile>http://projectliberty.org/profiles/rni-sp-http</RegisterNameIdentifierProtocolProfile>
+
+ <SoapEndpoint>https://idp1:1998/soapEndpoint</SoapEndpoint>
+
+</IDPDescriptor>
+</EntityDescriptor>
diff --git a/php/Attic/examples/sample-sp/metadata_sp1.xml b/php/Attic/examples/sample-sp/metadata_sp1.xml
new file mode 100644
index 00000000..ec28fa48
--- /dev/null
+++ b/php/Attic/examples/sample-sp/metadata_sp1.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<EntityDescriptor
+ providerID="https://sp1/metadata"
+ xmlns="urn:liberty:metadata:2003-08">
+ <SPDescriptor>
+
+ <AssertionConsumerServiceURL id="AssertionConsumerServiceURL1" isDefault="true">https://sp1:2006/assertionConsumer</AssertionConsumerServiceURL>
+
+ <SingleLogoutServiceURL>https://sp1:2006/singleLogout</SingleLogoutServiceURL>
+ <SingleLogoutProtocolProfile>http://projectliberty.org/profiles/slo-idp-soap</SingleLogoutProtocolProfile>
+
+ <RegisterNameIdentifierServiceURL>https://sp1:2006/registerNameIdentifier</RegisterNameIdentifierServiceURL>
+ <RegisterNameIdentifierProtocolProfile>http://projectliberty.org/profiles/rni-sp-soap</RegisterNameIdentifierProtocolProfile>
+
+ <SoapEndpoint>https://sp1:2006/soapEndpoint</SoapEndpoint>
+
+ <AuthnRequestsSigned>true</AuthnRequestsSigned>
+
+ </SPDescriptor>
+</EntityDescriptor>
diff --git a/php/Attic/examples/sample-sp/setup.php b/php/Attic/examples/sample-sp/setup.php
index 7688deab..01d283ed 100644
--- a/php/Attic/examples/sample-sp/setup.php
+++ b/php/Attic/examples/sample-sp/setup.php
@@ -46,13 +46,13 @@
$config = array(
'dsn' => "pgsql://sp:sp@localhost/sp",
'server_dump_filename' => "lasso_server_dump.xml",
- 'sp-metadata' => "/home/cnowicki/mcvs/lasso/tests/data/sp1-la/metadata.xml",
- 'sp-public_key' => "/home/cnowicki/mcvs/lasso/tests/data/sp1-la/public-key.pem",
- 'sp-private_key' => "/home/cnowicki/mcvs/lasso/tests/data/sp1-la/private-key-raw.pem",
- 'sp-ca' => "/home/cnowicki/mcvs/lasso/tests/data/sp1-la/certificate.pem",
- 'idp-metadata' => "/home/cnowicki/mcvs/lasso/tests/data/idp1-la/metadata.xml",
- 'idp-public_key' => "/home/cnowicki/mcvs/lasso/tests/data/idp1-la/public-key.pem",
- 'idp-ca' => "/home/cnowicki/mcvs/lasso/tests/data/ca1-la/certificate.pem",
+ 'sp-metadata' => $cwd . "/metadata_sp1.xml",
+ 'sp-public_key' => $cwd . "/public-key_sp1.pem",
+ 'sp-private_key' => $cwd . "/private-key-raw_sp1.pem",
+ 'sp-ca' => $cwd . "/certificate_sp1.pem",
+ 'idp-metadata' => $cwd . "/metadata_idp1.xml",
+ 'idp-public_key' => $cwd . "/public-key_idp1.pem",
+ 'idp-ca' => $cwd . "/certificate_idp1.pem",
);
$config_ser = serialize($config);
@@ -256,7 +256,7 @@
<td>DSN (Data Source Name) :</td><td><input type='text' name='dsn' size='50' value='<?php echo $config['dsn']; ?>' maxlength='100'></td><td><a href='http://pear.php.net/manual/en/package.database.db.intro-dsn.php' target='_new'>Help</a></td>
</tr>
<tr>
- <td>Server XML Dump:</td><td><input type='text' name='server_dump_filename' size='50' value='<?php echo $config['server_dump_filename']; ?>' maxlength='100'></td><td>&nbsp;</td>
+ <td>Server XML Dump :</td><td><input type='text' name='server_dump_filename' size='50' value='<?php echo $config['server_dump_filename']; ?>' maxlength='100'></td><td>&nbsp;</td>
</tr>
<tr>
@@ -264,23 +264,28 @@
</tr>
<tr>
- <td>Metadata</td><td><input type='text' name='sp-metadata' size='50' value='<?php echo $config['sp-metadata']; ?>'></td><td>&nbsp;</td>
+ <td>Metadata :</td>
+ <td><input type='text' name='sp-metadata' size='50' value='<?php echo $config['sp-metadata']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>
- <td>Public Key</td><td><input type='text' name='sp-public_key' size='50' value='<?php echo $config['sp-public_key']; ?>'></td><td>&nbsp;</td>
-
+ <td>Public Key :</td>
+ <td><input type='text' name='sp-public_key' size='50' value='<?php echo $config['sp-public_key']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>
- <td>Private Key</td><td><input type='text' name='sp-private_key' size='50' value='<?php echo $config['sp-private_key']; ?>'></td><td>&nbsp;</td>
-
+ <td>Private Key :</td>
+ <td><input type='text' name='sp-private_key' size='50' value='<?php echo $config['sp-private_key']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>
- <td>Certificate</td><td><input type='text' name='sp-ca' size='50' value='<?php echo $config['sp-ca']; ?>'></td><td>&nbsp;</td>
-
+ <td>Certificate :</td>
+ <td><input type='text' name='sp-ca' size='50' value='<?php echo $config['sp-ca']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>
@@ -288,15 +293,19 @@
</tr>
<tr>
- <td>Metadata</td><td><input type='text' name='idp-metadata' size='50' value='<?php echo $config['idp-metadata']; ?>'></td><td>&nbsp;</td>
-
+ <td>Metadata :</td>
+ <td><input type='text' name='idp-metadata' size='50' value='<?php echo $config['idp-metadata']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>
- <td>Public Key</td><td><input type='text' name='idp-public_key' size='50' value='<?php echo $config['idp-public_key']; ?>'></td><td>&nbsp;</td>
-
+ <td>Public Key :</td>
+ <td><input type='text' name='idp-public_key' size='50' value='<?php echo $config['idp-public_key']; ?>'>
+ </td><td>&nbsp;</td>
</tr>
<tr>
- <td>Certificate</td><td><input type='text' name='idp-ca' size='50' value='<?php echo $config['idp-ca']; ?>'></td><td>&nbsp;</td>
+ <td>Certificate :</td>
+ <td><input type='text' name='idp-ca' size='50' value='<?php echo $config['idp-ca']; ?>'></td>
+ <td>&nbsp;</td>
</tr>
<tr>