PHP 클래스 SimpleSAML_IdP, simplesamlphp

This class implements the various functions used by IdP.
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
addAssociation ( array $association ) Add an SP association.
doLogoutRedirect ( string $url ) Log out, then redirect to a URL.
finishLogout ( array &$state ) Finish the logout operation.
finishLogoutRedirect ( SimpleSAML_IdP $idp, array $state ) Redirect to a URL after logout.
getAssociations ( ) : array Retrieve list of SP associations.
getById ( string $id ) : SimpleSAML_IdP Retrieve an IdP by ID.
getByState ( array &$state ) : SimpleSAML_IdP Retrieve the IdP "owning" the state.
getConfig ( ) : SimpleSAML_Configuration Retrieve the configuration for this IdP.
getId ( ) : string Retrieve the ID of this IdP.
getLogoutHandler ( ) : SimpleSAML\IdP\LogoutHandlerInterface Find the logout handler of this IdP.
getSPName ( string $assocId ) : array | null Get SP name.
handleAuthenticationRequest ( array &$state ) Process authentication requests.
handleLogoutRequest ( array &$state, string | null $assocId ) Process a logout request.
handleLogoutResponse ( string $assocId, string | null $relayState, SimpleSAML_Error_Exception $error = null ) Process a logout response.
isAuthenticated ( ) : boolean Is the current user authenticated?
postAuth ( array $state ) The user is authenticated.
postAuthProc ( array $state ) Called after authproc has run.
terminateAssociation ( string $assocId ) Remove an SP association.

비공개 메소드들

메소드 설명
__construct ( string $id ) Initialize an IdP.
authenticate ( array &$state ) Authenticate the user.
reauthenticate ( array &$state ) Re-authenticate the user.

메소드 상세

addAssociation() 공개 메소드

Add an SP association.
public addAssociation ( array $association )
$association array The SP association.

doLogoutRedirect() 공개 메소드

This function never returns.
public doLogoutRedirect ( string $url )
$url string The URL the user should be returned to after logout.

finishLogout() 공개 메소드

This function will never return.
public finishLogout ( array &$state )
$state array

finishLogoutRedirect() 공개 정적인 메소드

This function never returns.
public static finishLogoutRedirect ( SimpleSAML_IdP $idp, array $state )
$idp SimpleSAML_IdP Deprecated. Will be removed.
$state array

getAssociations() 공개 메소드

Retrieve list of SP associations.
public getAssociations ( ) : array
리턴 array List of SP associations.

getById() 공개 정적인 메소드

Retrieve an IdP by ID.
public static getById ( string $id ) : SimpleSAML_IdP
$id string The identifier of the IdP.
리턴 SimpleSAML_IdP The IdP.

getByState() 공개 정적인 메소드

Retrieve the IdP "owning" the state.
public static getByState ( array &$state ) : SimpleSAML_IdP
$state array
리턴 SimpleSAML_IdP The IdP.

getConfig() 공개 메소드

Retrieve the configuration for this IdP.
public getConfig ( ) : SimpleSAML_Configuration
리턴 SimpleSAML_Configuration The configuration object.

getId() 공개 메소드

Retrieve the ID of this IdP.
public getId ( ) : string
리턴 string The ID of this IdP.

getLogoutHandler() 공개 메소드

Find the logout handler of this IdP.
public getLogoutHandler ( ) : SimpleSAML\IdP\LogoutHandlerInterface
리턴 SimpleSAML\IdP\LogoutHandlerInterface The logout handler class.

getSPName() 공개 메소드

Get SP name.
public getSPName ( string $assocId ) : array | null
$assocId string The association identifier.
리턴 array | null The name of the SP, as an associative array of language => text, or null if this isn't an SP.

handleAuthenticationRequest() 공개 메소드

Process authentication requests.
public handleAuthenticationRequest ( array &$state )
$state array

handleLogoutRequest() 공개 메소드

This function will never return.
public handleLogoutRequest ( array &$state, string | null $assocId )
$state array
$assocId string | null The association we received the logout request from, or null if there was no association.

handleLogoutResponse() 공개 메소드

This function will never return.
public handleLogoutResponse ( string $assocId, string | null $relayState, SimpleSAML_Error_Exception $error = null )
$assocId string The association that is terminated.
$relayState string | null The RelayState from the start of the logout.
$error SimpleSAML_Error_Exception The error that occurred during session termination (if any).

isAuthenticated() 공개 메소드

Is the current user authenticated?
public isAuthenticated ( ) : boolean
리턴 boolean True if the user is authenticated, false otherwise.

postAuth() 공개 정적인 메소드

The user is authenticated.
public static postAuth ( array $state )
$state array The authentication request state array.

postAuthProc() 공개 정적인 메소드

Called after authproc has run.
public static postAuthProc ( array $state )
$state array The authentication request state array.

terminateAssociation() 공개 메소드

Remove an SP association.
public terminateAssociation ( string $assocId )
$assocId string The association id.