Initiates the SSO process.
public login ( string | null $returnTo = null, array $parameters = [], boolean $forceAuthn = false, boolean $isPassive = false, boolean $stay = false, boolean $setNameIdPolicy = true ) : If | ||
$returnTo | string | null | The target URL the user should be returned to after login. |
$parameters | array | Extra parameters to be added to the GET |
$forceAuthn | boolean | When true the AuthNReuqest will set the ForceAuthn='true' |
$isPassive | boolean | When true the AuthNReuqest will set the Ispassive='true' |
$stay | boolean | True if we want to stay (returns the url string) False to redirect |
$setNameIdPolicy | boolean | When true the AuthNReuqest will set a nameIdPolicy element |
Результат | If | $stay is True, it return a string with the SLO URL + LogoutRequest + parameters |