PHP Class sspmod_multiauth_Auth_Source_MultiAuth, simplesamlphp

Author: Lorenzo Gil, Yaco Sistemas S.L.
Inheritance: extends SimpleSAML_Auth_Source
Show file Open project: simplesamlphp/simplesamlphp Class Usage Examples

Public Methods

Method Description
__construct ( array $info, array $config ) Constructor for this authentication source.
authenticate ( &$state ) Prompt the user with a list of authentication sources.
delegateAuthentication ( string $authId, array $state ) Delegate authentication.
getPreviousSource ( ) Get the previous authentication source.
logout ( &$state ) Log out from this authentication source.
setPreviousSource ( string $source ) Set the previous authentication source.

Method Details

__construct() public method

Constructor for this authentication source.
public __construct ( array $info, array $config )
$info array Information about this authentication source.
$config array Configuration.

authenticate() public method

This method saves the information about the configured sources, and redirects to a page where the user must select one of these authentication sources. This method never return. The authentication process is finished in the delegateAuthentication method.
public authenticate ( &$state )

delegateAuthentication() public static method

This method is called once the user has choosen one authentication source. It saves the selected authentication source in the session to be able to logout properly. Then it calls the authenticate method on such selected authentication source.
public static delegateAuthentication ( string $authId, array $state )
$authId string Selected authentication source
$state array Information about the current authentication.

getPreviousSource() public method

This method retrieves the authentication source that the user selected last time or NULL if this is the first time or remembering is disabled.
public getPreviousSource ( )

logout() public method

This method retrieves the authentication source used for this session and then call the logout method on it.
public logout ( &$state )

setPreviousSource() public method

This method remembers the authentication source that the user selected by storing its name in a cookie.
public setPreviousSource ( string $source )
$source string Name of the authentication source the user selected.