PHP Class Aacotroneo\Saml2\Saml2Auth

Afficher le fichier Open project: aacotroneo/laravel-saml2 Class Usage Examples

Protected Properties

Свойство Type Description
$auth OneLogin_Saml2_Auth
$samlAssertion

Méthodes publiques

Méthode Description
__construct ( OneLogin_Saml2_Auth $auth )
acs ( ) Process a Saml response (assertion consumer service) When errors are encountered, it returns an array with proper description
getMetadata ( ) : mixed Show metadata about the local sp. Use this to configure your saml2 IDP
getSaml2User ( ) : Saml2User The user info from the assertion
isAuthenticated ( ) : boolean
login ( $returnTo = null ) Initiate a saml2 login flow. It will redirect! Before calling this, check if user is authenticated (here in saml2). That would be true when the assertion was received this request.
logout ( $returnTo = null, $nameId = null, $sessionIndex = null ) Initiate a saml2 logout flow. It will close session on all other SSO services. You should close local session if applicable.
sls ( $retrieveParametersFromServer = false ) Process a Saml response (assertion consumer service) returns an array with errors if it can not logout

Method Details

__construct() public méthode

public __construct ( OneLogin_Saml2_Auth $auth )
$auth OneLogin_Saml2_Auth

acs() public méthode

Process a Saml response (assertion consumer service) When errors are encountered, it returns an array with proper description
public acs ( )

getMetadata() public méthode

Show metadata about the local sp. Use this to configure your saml2 IDP
public getMetadata ( ) : mixed
Résultat mixed xml string representing metadata

getSaml2User() public méthode

The user info from the assertion
public getSaml2User ( ) : Saml2User
Résultat Saml2User

isAuthenticated() public méthode

public isAuthenticated ( ) : boolean
Résultat boolean if a valid user was fetched from the saml assertion this request.

login() public méthode

Initiate a saml2 login flow. It will redirect! Before calling this, check if user is authenticated (here in saml2). That would be true when the assertion was received this request.
public login ( $returnTo = null )

logout() public méthode

Initiate a saml2 logout flow. It will close session on all other SSO services. You should close local session if applicable.
public logout ( $returnTo = null, $nameId = null, $sessionIndex = null )

sls() public méthode

Process a Saml response (assertion consumer service) returns an array with errors if it can not logout
public sls ( $retrieveParametersFromServer = false )

Property Details

$auth protected_oe property

protected OneLogin_Saml2_Auth $auth
Résultat OneLogin_Saml2_Auth

$samlAssertion protected_oe property

protected $samlAssertion