From ef60f5149bb71419e8c405c7ed763cfb74127709 Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Wed, 22 Sep 2004 13:53:06 +0000 Subject: Added ProfileBrwsPost --- php/Attic/examples/sample-sp/login.php | 54 ++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 18 deletions(-) (limited to 'php') diff --git a/php/Attic/examples/sample-sp/login.php b/php/Attic/examples/sample-sp/login.php index 55e55d5e..7b693c56 100644 --- a/php/Attic/examples/sample-sp/login.php +++ b/php/Attic/examples/sample-sp/login.php @@ -47,29 +47,47 @@ $login = new LassoLogin($server); - switch($_GET['profile']) - { - case 'post': - // TODO - break; - case 'artifact': - $login->initauthnrequest(lassoHttpMethodRedirect); - - $request = $login->authnRequest; - - $request->isPassive = FALSE; - $request->nameIdPolicy = lassoLibNameIDPolicyTypeFederated; - $request->consent = lassoLibConsentObtained; + if ($_GET['profile'] == 'post') + $login->initauthnrequest(lassoHttpMethodPost); + elseif ($_GET['profile'] == 'artifact') + $login->initauthnrequest(lassoHttpMethodRedirect); + else + die('Unknown Single Sign ON Profile'); - $login->buildAuthnRequestMsg($config['providerID']); + $request = $login->authnRequest; + $request->isPassive = FALSE; + $request->nameIdPolicy = lassoLibNameIDPolicyTypeFederated; + $request->consent = lassoLibConsentObtained; - $url = $login->msgUrl; + $login->buildAuthnRequestMsg($config['providerID']); + $url = $login->msgUrl; + $msg = $login->msgBody; + switch ($_GET['profile']) + { + case 'post': +?> + + + + Authentication Request + + +
+

You should be automaticaly redirected to an authentication server.

+

If this page is still visible after a few seconds, press the Send button below.

+ + +
+ + + -- cgit