summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;