| Methods |
public
|
__construct(array<string, string> $request)
Constructs a new OpenID request.
Constructs a new OpenID request.
Parameters
| $request |
the request in array form
|
Overrides
|
#
|
public
|
getRealm(): string
Gets the realm from the OpenID request. This is specified differently
depending on the OpenID version.
Gets the realm from the OpenID request. This is specified differently
depending on the OpenID version.
Returns
|
#
|
public
|
returnToMatches(string $realm, bool $strict = true): bool
Determines whether the openid.return_to address matches a realm.
Determines whether the openid.return_to address matches a realm.
A URL matches a realm if:
- The URL scheme and port of the URL are identical to those in the realm.
See RFC 3986, section 3.1 for rules about URI matching.
- The URL's path is equal to or a sub-directory of the realm's path.
- Either:
(a) The realm's domain contains the wild-card characters ".", and the
trailing part of the URL's domain is identical to the part of the
realm following the "." wildcard, or
(b) The URL's domain is identical to the realm's domain
Parameters
| $realm |
the realm
|
| $strict |
whether the scheme also needs to match
|
Returns
true if the URL matches the realm
|
#
|
public
|
getSignatureBaseString(): string|null
Calculates the base string from which an OpenID signature is generated.
Calculates the base string from which an OpenID signature is generated.
Returns
the signature base string
Implements
|
#
|
protected
|
getPrefix(): string
Returns the base string from which an OpenID signature is generated
Returns the base string from which an OpenID signature is generated
Returns
Implements
|
#
|
public
|
toString(): string
Returns a string representation of the request.
Returns a string representation of the request.
|
#
|