From 40940b95aaefd87f9af96439669cc6cb184d69ef Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Thu, 16 Sep 2004 15:57:55 +0000 Subject: New logging system with a web interface. --- php/Attic/examples/sample-sp/index.php | 35 +++++++++++++++++++--------------- php/Attic/examples/sample-sp/login.php | 2 +- php/Attic/examples/sample-sp/setup.php | 9 +++++++++ 3 files changed, 30 insertions(+), 16 deletions(-) (limited to 'php/Attic/examples/sample-sp') diff --git a/php/Attic/examples/sample-sp/index.php b/php/Attic/examples/sample-sp/index.php index 700198f4..199e8286 100644 --- a/php/Attic/examples/sample-sp/index.php +++ b/php/Attic/examples/sample-sp/index.php @@ -66,34 +66,39 @@ You can get more informations about Lasso at

- - - - - - - +Service Provider Administration
+Setup
+Users Management
+

+

+ Serice Provider Fonctionnality +

Service Provider Administration
Setup
+ - + - + + - - + + - + + +
Users ManagementSingle SignOn using an IdP
Serice Provider FonctionnalityProviderProfile
Login!post | artifact
Logout!Single Logout
Logout!

+

- +
nameIdPolicy = lassoLibNameIDPolicyTypeFederated; $request->consent = lassoLibConsentObtained; - $login->buildAuthnRequestMsg("https://idp1/metadata"); + $login->buildAuthnRequestMsg($config['providerID']); $url = $login->msgUrl; diff --git a/php/Attic/examples/sample-sp/setup.php b/php/Attic/examples/sample-sp/setup.php index 01d283ed..eebd81ed 100644 --- a/php/Attic/examples/sample-sp/setup.php +++ b/php/Attic/examples/sample-sp/setup.php @@ -50,6 +50,7 @@ 'sp-public_key' => $cwd . "/public-key_sp1.pem", 'sp-private_key' => $cwd . "/private-key-raw_sp1.pem", 'sp-ca' => $cwd . "/certificate_sp1.pem", + 'providerID' => "https://idp1/metadata", 'idp-metadata' => $cwd . "/metadata_idp1.xml", 'idp-public_key' => $cwd . "/public-key_idp1.pem", 'idp-ca' => $cwd . "/certificate_idp1.pem", @@ -145,6 +146,7 @@ $keys = array_keys($config); $files = preg_grep("/(sp|idp)/", $keys); + foreach($files as $file) { print "
Check file " . $config[$file] . " : "; @@ -292,11 +294,18 @@ + + + + + + +
Status
Identity Provider
ProviderID :'> 
Metadata : '>  
Public Key : '> -- cgit