extends |
Module |
|---|
Base class for SimpleID modules providing access to resources protected by OAuth.
This class contains various convenience functions to OAuthManager and its methods.
| Methods | ||
|---|---|---|
public
|
__construct()
|
# |
public
|
beforeroute(): void
|
# |
protected
|
getAccessToken(): AccessToken
|
# |
protected
|
getAuthorization(): Authorization|null
|
# |
protected
|
getTokenOwner(): Storable|null
|
# |
protected
|
getTokenClient(): Storable|null
|
# |
protected
|
isTokenAuthorized(array<string>|string $scope, string &$error = null): bool
|
# |
protected
|
unauthorizedError(
string $error,
string $error_description = null,
array<string, string> $additional = [],
string $format = 'html',
int $status = 401,
): void
|
# |
| Methods inherited from SimpleID\Module |
|---|
init(), isHttps(), checkHttps(), getCanonicalURL(), getCanonicalHost(), getOrigin(), fatalError(), secureCompare() |
| Properties | |||
|---|---|---|---|
protected
|
OAuthManager
|
$oauth
|
# |
protected
|
bool
|
$oauth_include_request_body = false
|
# |
| Properties inherited from SimpleID\Module |
|---|
$f3, $logger |