summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorChristophe Nowicki <cnowicki@easter-eggs.com>2005-01-18 14:52:57 +0000
committerChristophe Nowicki <cnowicki@easter-eggs.com>2005-01-18 14:52:57 +0000
commita4d2c7550df0734de103a9b71b6e549601fd7db4 (patch)
tree58db8c7dd8235be0e7d58fbab337585de6a91bda /php
parent5779be82a85d9771e97c364e39716b424fe59de1 (diff)
downloadlasso-a4d2c7550df0734de103a9b71b6e549601fd7db4.tar.gz
lasso-a4d2c7550df0734de103a9b71b6e549601fd7db4.tar.xz
lasso-a4d2c7550df0734de103a9b71b6e549601fd7db4.zip
change constants name
Diffstat (limited to 'php')
-rw-r--r--php/Attic/examples/sample-sp/login.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/php/Attic/examples/sample-sp/login.php b/php/Attic/examples/sample-sp/login.php
index 7b693c56..8d507eb6 100644
--- a/php/Attic/examples/sample-sp/login.php
+++ b/php/Attic/examples/sample-sp/login.php
@@ -48,17 +48,18 @@
$login = new LassoLogin($server);
if ($_GET['profile'] == 'post')
- $login->initauthnrequest(lassoHttpMethodPost);
+ $login->initAuthnRequest(LASSO_HTTP_METHOD_POST);
elseif ($_GET['profile'] == 'artifact')
- $login->initauthnrequest(lassoHttpMethodRedirect);
+ $login->initAuthnRequest(LASSO_HTTP_METHOD_REDIRECT);
else
die('Unknown Single Sign ON Profile');
$request = $login->authnRequest;
- $request->isPassive = FALSE;
- $request->nameIdPolicy = lassoLibNameIDPolicyTypeFederated;
- $request->consent = lassoLibConsentObtained;
+ $request->isPassive = FALSE;
+ $request->nameIdPolicy = LASSO_LIB_NAMEID_POLICY_TYPE_FEDERATED;
+ $request->consent = LASSO_LIB_CONSENT_OBTAINED;
+
$login->buildAuthnRequestMsg($config['providerID']);
$url = $login->msgUrl;