[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch




/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/ -> AbstractService.php (summary)

(no description)

File Size: 364 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 17 functions


Functions that are not part of a class:

__construct(CredentialsInterface $credentials,ClientInterface $httpClient,TokenStorageInterface $storage,$scopes = array()   X-Ref

param: CredentialsInterface  $credentials
param: ClientInterface       $httpClient
param: TokenStorageInterface $storage
param: array                 $scopes
param: UriInterface|null     $baseApiUri
param: bool $stateParameterInAutUrl
param: string                $apiVersion

getAuthorizationUri(array $additionalParameters = array()   X-Ref

requestAccessToken($code, $state = null)   X-Ref

request($path, $method = 'GET', $body = null, array $extraHeaders = array()   X-Ref
Sends an authenticated API request to the path provided.
If the path provided is not an absolute URI, the base API Uri (must be passed into constructor) will be used.

return: string
param: string|UriInterface $path
param: string              $method       HTTP method
param: array               $body         Request body if applicable.
param: array               $extraHeaders Extra headers if applicable. These will override service-specific

getStorage()   X-Ref
Accessor to the storage adapter to be able to retrieve tokens

return: TokenStorageInterface

refreshAccessToken(TokenInterface $token)   X-Ref
Refreshes an OAuth2 access token.

return: TokenInterface $token
param: TokenInterface $token

isValidScope($scope)   X-Ref
Return whether or not the passed scope value is valid.

return: bool
param: string $scope

needsStateParameterInAuthUrl()   X-Ref
Check if the given service need to generate a unique state token to build the authorization url

return: bool

validateAuthorizationState($state)   X-Ref
Validates the authorization state against a given one

param: string $state

generateAuthorizationState()   X-Ref
Generates a random string to be used as state

return: string

retrieveAuthorizationState()   X-Ref
Retrieves the authorization state for the current service

return: string

storeAuthorizationState($state)   X-Ref
Stores a given authorization state into the storage

param: string $state

getExtraOAuthHeaders()   X-Ref
Return any additional headers always needed for this service implementation's OAuth calls.

return: array

getExtraApiHeaders()   X-Ref
Return any additional headers always needed for this service implementation's API calls.

return: array

getAuthorizationMethod()   X-Ref
Returns a class constant from ServiceInterface defining the authorization method used for the API
Header is the sane default.

return: int

getApiVersionString()   X-Ref
Returns api version string if is set else retrun empty string

return: string

getScopesDelimiter()   X-Ref
Returns delimiter to scopes in getAuthorizationUri
For services that do not fully respect the Oauth's RFC,
and use scopes with commas as delimiter

return: string

Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1