extends |
BaseEvent |
|---|---|
implements |
ProtocolResult |
uses |
ProtocolResultTrait |
An event to process an OpenID authentication request.
There are two kinds of OpenID authentication requests:
methods, but listeners can modify the assertion result.
Listeners can identify whether a request is an identifier request or an extension request by calling the isExtensionRequest() method.
Listeners can examine the contents of the request, and whether a request
is immediate (i.e. whether openid.mode is checkid_immediate) using
the getRequest() and isImmediate() methods respectively.
For identifier requests, the identifier that is subject to the request can be obtained from the getRequestedIdentity() method.
The assertion result can be set using the setResult()
method. The result must be one of the constants defined in SimpleID\Protocols\ProtocolResult
.
Note that for identifier requests, the standard processing (by SimpleID\Protocols\OpenID\OpenIDModule::openIDCheckIdentity()
) occurs after these listeners are called. Therefore, attempts to retrieve the assertion result may return CHECKID_PROTOCOL_ERROR.
| Methods | ||
|---|---|---|
public
|
__construct(Request $request, bool $immediate, ?string $identity = null)
|
# |
public
|
getRequest(): Request
|
# |
public
|
isImmediate(): bool
|
# |
public
|
isExtensionRequest(): bool
|
# |
public
|
getRequestedIdentity(): string
|
# |
| Methods used from SimpleID\Protocols\ProtocolResultTrait |
|---|
setResult(), getResult(), hasResult() |
| Properties | |||
|---|---|---|---|
protected
|
Request
|
$request
|
# |
protected
|
bool
|
$immediate
|
# |
protected
|
string|null
|
$identity = null
|
# |
| Properties used from SimpleID\Protocols\ProtocolResultTrait |
|---|
$result |