| Methods |
public
static
|
init($f3)
|
#
|
public
|
start(): void
|
#
|
protected
|
getJRD(string $resource): array<string, mixed>|null
Creates a JRD document based on a SimpleID user.
Creates a JRD document based on a SimpleID user.
The JRD document created is very simple - it merely points to the
SimpleID installation as the OpenID connect provider.
Parameters
| $resource |
the resource identifier
|
Returns
|
#
|
protected
|
getResourceCriteria(string $resource): array<string, string>|null
Obtains the criteria to search, based on a specified resource
identifier.
Obtains the criteria to search, based on a specified resource
identifier.
This function works out the type of resource being requested (e.g.
URL or e-mail), then supplies the appropriate path(s) to search
for.
Parameters
| $resource |
the resource identifier
|
Returns
an array of criteria paths and their corresponding
values
|
#
|
protected
|
fixJRDAliases(array<string, mixed> $jrd, string $resource): array<string, mixed>
Ensures that a specified resource URI occurs in either the subject or
the aliases member of a JRD document.
Ensures that a specified resource URI occurs in either the subject or
the aliases member of a JRD document.
Parameters
| $jrd |
the JRD document
|
| $resource |
the resource URI
|
Returns
|
#
|
protected
|
filterJRDRels(array<string, mixed> $jrd, string|array<string> $rels): array<string, mixed>
Filters a JRD document for specified link relations.
Filters a JRD document for specified link relations.
Parameters
| $jrd |
the JRD document
|
| $rels |
a string contain a link relation, or an array containing
multiple link relations, to filter
|
Returns
the filtered JRD document
|
#
|