ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (array $metadataSets, $instance) | |
Initializes this discovery service. More... | |
handleRequest () | |
Handles a request to this discovery service. More... | |
![]() | |
__construct (array $metadataSets, $instance) | |
Initializes this discovery service. More... | |
handleRequest () | |
Handles a request to this discovery service. More... | |
Static Public Member Functions | |
static | mcmp (array $a, array $b) |
Compare two entities. More... | |
Protected Member Functions | |
log ($message) | |
Log a message. More... | |
idplistStructured ($list) | |
Structure the list of IdPs in a hierarchy based upon the tags. More... | |
filterList ($list) | |
Filter a list of entities according to any filters defined in the parent class, plus discopower configuration options regarding filtering. More... | |
setPreviousIdP ($idp) | |
Save the current IdP choice to a cookie. More... | |
getPreviousIdP () | |
Retrieve the previous IdP the user used. More... | |
![]() | |
log ($message) | |
Log a message. More... | |
getCookie ($name) | |
Retrieve cookie with the given name. More... | |
setCookie ($name, $value) | |
Save cookie with the given name and value. More... | |
validateIdP ($idp) | |
Validates the given IdP entity id. More... | |
getSelectedIdP () | |
Retrieve the users choice of IdP. More... | |
getSavedIdP () | |
Retrieve the users saved choice of IdP. More... | |
getPreviousIdP () | |
Retrieve the previous IdP the user used. More... | |
getFromCIDRhint () | |
Retrieve a recommended IdP based on the IP address of the client. More... | |
getRecommendedIdP () | |
Try to determine which IdP the user should most likely use. More... | |
setPreviousIdP ($idp) | |
Save the current IdP choice to a cookie. More... | |
saveIdP () | |
Determine whether the choice of IdP should be saved. More... | |
getTargetIdP () | |
Determine which IdP the user should go to, if any. More... | |
getIdPList () | |
Retrieve the list of IdPs which are stored in the metadata. More... | |
getScopedIDPList () | |
Return the list of scoped idp. More... | |
filterList ($list) | |
Filter the list of IdPs. More... | |
start () | |
Check if an IdP is set or if the request is passive, and redirect accordingly. More... | |
Private Member Functions | |
processFilter ($filter, $entry, $default=true) | |
Do the actual filtering according the rules defined. More... | |
getCDC () | |
Get the IdP entities saved in the common domain cookie. More... | |
Private Attributes | |
$discoconfig | |
$cdcDomain | |
$cdcLifetime | |
Additional Inherited Members | |
![]() | |
$config | |
$instance | |
$metadata | |
$session | |
$metadataSets | |
$spEntityId | |
$isPassive | |
$setIdPentityID = null | |
$returnIdParam | |
$scopedIDPList = array() | |
$returnURL | |
Definition at line 13 of file PowerIdPDisco.php.
sspmod_discopower_PowerIdPDisco::__construct | ( | array | $metadataSets, |
$instance | |||
) |
Initializes this discovery service.
The constructor does the parsing of the request. If this is an invalid request, it will throw an exception.
array | $metadataSets | Array with metadata sets we find remote entities in. |
string | $instance | The name of this instance of the discovery service. |
Definition at line 50 of file PowerIdPDisco.php.
References SimpleSAML_XHTML_IdPDisco\$instance, and SimpleSAML_Configuration\getConfig().
|
protected |
Filter a list of entities according to any filters defined in the parent class, plus discopower configuration options regarding filtering.
array | $list | A list of entities to filter. |
Definition at line 187 of file PowerIdPDisco.php.
References $key, $list, $spmd, array, and processFilter().
Referenced by handleRequest().
|
private |
Get the IdP entities saved in the common domain cookie.
Definition at line 293 of file PowerIdPDisco.php.
References $_COOKIE, $idp, $ret, array, and string.
Referenced by getPreviousIdP(), and setPreviousIdP().
|
protected |
Retrieve the previous IdP the user used.
This function overrides the corresponding function in the parent class, to add support for common domain cookie.
Definition at line 369 of file PowerIdPDisco.php.
References $idp, getCDC(), and SimpleSAML_XHTML_IdPDisco\validateIdP().
sspmod_discopower_PowerIdPDisco::handleRequest | ( | ) |
Handles a request to this discovery service.
The IdP disco parameters should be set before calling this function.
Definition at line 241 of file PowerIdPDisco.php.
References SimpleSAML_XHTML_IdPDisco\$returnIdParam, SimpleSAML_XHTML_IdPDisco\$returnURL, $slist, SimpleSAML_XHTML_IdPDisco\$spEntityId, $t, $tab, array, filterList(), SimpleSAML_XHTML_IdPDisco\getIdPList(), SimpleSAML_XHTML_IdPDisco\getRecommendedIdP(), idplistStructured(), and SimpleSAML_XHTML_IdPDisco\start().
|
protected |
Structure the list of IdPs in a hierarchy based upon the tags.
array | $list | A list of IdPs. |
Definition at line 111 of file PowerIdPDisco.php.
References $key, $list, $slist, $tab, $tag, $tags, and array.
Referenced by handleRequest().
|
protected |
Log a message.
This is an helper function for logging messages. It will prefix the messages with our discovery service type.
string | $message | The message which should be logged. |
Definition at line 73 of file PowerIdPDisco.php.
References $message, and SimpleSAML\Logger\info().
Compare two entities.
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.
array | $a | The metadata of the first entity. |
array | $b | The metadata of the second entity. |
Definition at line 90 of file PowerIdPDisco.php.
|
private |
Do the actual filtering according the rules defined.
array | $filter | A set of rules regarding filtering. |
array | $entry | An entry to be evaluated by the filters. |
boolean | $default | What to do in case the entity does not match any rules. Defaults to true. |
Definition at line 154 of file PowerIdPDisco.php.
Referenced by filterList().
|
protected |
Save the current IdP choice to a cookie.
This function overrides the corresponding function in the parent class, to add support for common domain cookie.
string | $idp | The entityID of the IdP. |
Definition at line 320 of file PowerIdPDisco.php.
References $idp, $list, $params, array, getCDC(), and SimpleSAML\Utils\HTTP\setCookie().
|
private |
Definition at line 31 of file PowerIdPDisco.php.
|
private |
Definition at line 39 of file PowerIdPDisco.php.
|
private |
Definition at line 22 of file PowerIdPDisco.php.