* add parameter to set_user_id

This commit is contained in:
<bdauvergne@entrouvert.com> 1206633987 +0100 0001-01-01 00:00:00 +00:00
parent db0c492287
commit f9dccf39fb
2 changed files with 3 additions and 3 deletions

2
README
View File

@ -51,7 +51,7 @@ function lassospkit_websso_redirect($relay)
* URL to the local page intiating SSO exchanges with the IdP. Use the baseUrl
configuration option to construct this URL.
function lassospkit_set_userid()
function lassospkit_set_userid($userID)
* Set the userID (can be any string) to persist together
with the nameId when using automatized persistence of federations.

View File

@ -74,8 +74,8 @@ function lassospkit_federate_redirect($relay) {
/** Sets the userid to associate to this nameID, during
the next WebSSO interaction.
Only useful if you activated autofederation. */
function lassospkit_set_userid() {
LassoSPKitUtilsSession::setUserID($nameid);
function lassospkit_set_userid($userid) {
LassoSPKitUtilsSession::setUserID($userid);
}
/* Return the URL where to redirect a user to initiated defederation of the current nameid. */