[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

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

(no description)

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

Defines 10 functions

  __construct()
  getAuthorizationUri()
  requestAccessToken()
  request()
  getStorage()
  refreshAccessToken()
  isValidScope()
  getExtraOAuthHeaders()
  getExtraApiHeaders()
  getAuthorizationMethod()

Functions
Functions that are not part of a class:

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

param: Credentials           $credentials
param: ClientInterface       $httpClient
param: TokenStorageInterface $storage
param: array                 $scopes
param: UriInterface|null     $baseApiUri

getAuthorizationUri(array $additionalParameters = array()   X-Ref
{@inheritdoc}


requestAccessToken($code)   X-Ref
{@inheritdoc}


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.

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
return: string

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.

param: TokenInterface $token
return: TokenInterface $token

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

param: string $scope
return: bool

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



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1