From 9a0dbf9d8a230852914785cf0fe42628de314ca8 Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Thu, 14 Jun 2007 17:25:10 +0000 Subject: added 2 lines to get the --- docs/lasso-book/writing-a-php-sp.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs') 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; -- cgit