PHP 클래스 sspmod_discopower_PowerIdPDisco, simplesamlphp

This module extends the basic IdP disco handler, and add features like filtering and tabs.
상속: extends SimpleSAML_XHTML_IdPDisco
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $metadataSets, string $instance ) Initializes this discovery service.
handleRequest ( ) Handles a request to this discovery service.
mcmp ( array $a, array $b ) : integer Compare two entities.

보호된 메소드들

메소드 설명
filterList ( array $list ) : array Filter a list of entities according to any filters defined in the parent class, plus discopower configuration options regarding filtering.
getPreviousIdP ( ) : string | null Retrieve the previous IdP the user used.
idplistStructured ( array $list ) : array Structure the list of IdPs in a hierarchy based upon the tags.
log ( string $message ) Log a message.
setPreviousIdP ( string $idp ) Save the current IdP choice to a cookie.

비공개 메소드들

메소드 설명
getCDC ( ) : array Get the IdP entities saved in the common domain cookie.
processFilter ( array $filter, array $entry, boolean $default = true ) : boolean Do the actual filtering according the rules defined.

메소드 상세

__construct() 공개 메소드

The constructor does the parsing of the request. If this is an invalid request, it will throw an exception.
public __construct ( array $metadataSets, string $instance )
$metadataSets array Array with metadata sets we find remote entities in.
$instance string The name of this instance of the discovery service.

filterList() 보호된 메소드

Filter a list of entities according to any filters defined in the parent class, plus discopower configuration options regarding filtering.
protected filterList ( array $list ) : array
$list array A list of entities to filter.
리턴 array The list in $list after filtering entities.

getPreviousIdP() 보호된 메소드

This function overrides the corresponding function in the parent class, to add support for common domain cookie.
protected getPreviousIdP ( ) : string | null
리턴 string | null The entity id of the previous IdP the user used, or null if this is the first time.

handleRequest() 공개 메소드

The IdP disco parameters should be set before calling this function.
public handleRequest ( )

idplistStructured() 보호된 메소드

Structure the list of IdPs in a hierarchy based upon the tags.
protected idplistStructured ( array $list ) : array
$list array A list of IdPs.
리턴 array The list of IdPs structured accordingly.

log() 보호된 메소드

This is an helper function for logging messages. It will prefix the messages with our discovery service type.
protected log ( string $message )
$message string The message which should be logged.

mcmp() 공개 정적인 메소드

This function is used to sort the entity list. It sorts based on english name, and will always put IdP's with names configured before those with only an entityID.
public static mcmp ( array $a, array $b ) : integer
$a array The metadata of the first entity.
$b array The metadata of the second entity.
리턴 integer How $a compares to $b.

setPreviousIdP() 보호된 메소드

This function overrides the corresponding function in the parent class, to add support for common domain cookie.
protected setPreviousIdP ( string $idp )
$idp string The entityID of the IdP.