PHP 클래스 Aacotroneo\Saml2\Saml2Auth

파일 보기 프로젝트 열기: aacotroneo/laravel-saml2 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$auth OneLogin_Saml2_Auth
$samlAssertion

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( OneLogin_Saml2_Auth $auth )
$auth OneLogin_Saml2_Auth

acs() 공개 메소드

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

getMetadata() 공개 메소드

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

getSaml2User() 공개 메소드

The user info from the assertion
public getSaml2User ( ) : Saml2User
리턴 Saml2User

isAuthenticated() 공개 메소드

public isAuthenticated ( ) : boolean
리턴 boolean if a valid user was fetched from the saml assertion this request.

login() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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

프로퍼티 상세

$auth 보호되어 있는 프로퍼티

protected OneLogin_Saml2_Auth $auth
리턴 OneLogin_Saml2_Auth

$samlAssertion 보호되어 있는 프로퍼티

protected $samlAssertion