summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/lasso-book/writing-a-php-sp.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/lasso-book/writing-a-php-sp.txt b/docs/lasso-book/writing-a-php-sp.txt
index 7790570b..1eb0af24 100644
--- a/docs/lasso-book/writing-a-php-sp.txt
+++ b/docs/lasso-book/writing-a-php-sp.txt
@@ -229,14 +229,13 @@ service.
.. note:: the login URL is not normative; any name will do.
-``$server`` is a instantiated ``LassoServer`` as seen earlier and
-``$idpProviderId`` is a string with the identity provider Id (the string must
-match a providerID defined in the metadata file).
+``$server`` is an instantiated ``LassoServer`` as seen earlier
::
-
$lassoLogin = new LassoLogin($server);
+ $providerIdList = $server->providerIds;
+ $idpProviderId = $provider_id_list->getItem(0);
$lassoLogin->initAuthnRequest($idpProviderId, LASSO_HTTP_METHOD_REDIRECT);
$lassoRequest = $lassoLogin->request;
$lassoRequest->NameIDPolicy = LASSO_LIB_NAMEID_POLICY_TYPE_FEDERATED;