Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • AbstractProviderTest
  • Fake
  • Generic
  • GenericProviderTest
  • Overview
  • Namespace
  • Class
  • Download

Class Fake

Represents a service provider (authorization server).

League\OAuth2\Client\Provider\AbstractProvider uses League\OAuth2\Client\Tool\ArrayAccessorTrait, League\OAuth2\Client\Tool\QueryBuilderTrait
Extended by League\OAuth2\Client\Test\Provider\Fake uses League\OAuth2\Client\Tool\BearerAuthorizationTrait

Direct known subclasses

League\OAuth2\Client\Test\Provider\Fake\ProviderWithAccessTokenResourceOwnerId
Namespace: League\OAuth2\Client\Test\Provider
Link: Roles (RFC 6749, ยง1.1)
Located at test/src/Provider/Fake.php
Methods summary
public string
# getBaseAuthorizationUrl( )

Returns the base URL for authorizing a client.

Returns the base URL for authorizing a client.

Eg. https://oauth.service.com/authorize

Returns

string
public string
# getBaseAccessTokenUrl( array $params )

Returns the base URL for requesting an access token.

Returns the base URL for requesting an access token.

Eg. https://oauth.service.com/token

Parameters

$params

Returns

string
public string
# getResourceOwnerDetailsUrl( League\OAuth2\Client\Token\AccessToken $token )

Returns the URL for requesting the resource owner's details.

Returns the URL for requesting the resource owner's details.

Parameters

$token

Returns

string
protected array
# getDefaultScopes( )

Returns the default scopes used by this provider.

Returns the default scopes used by this provider.

This should only be the scopes that are required to request the details of the resource owner, rather than all the available scopes.

Returns

array
public
# setAccessTokenMethod( $method )
public string
# getAccessTokenMethod( )

Returns the method to use when requesting an access token.

Returns the method to use when requesting an access token.

Returns

string
HTTP method

Overrides

League\OAuth2\Client\Provider\AbstractProvider::getAccessTokenMethod()
protected ResourceOwnerInterface
# createResourceOwner( array $response, League\OAuth2\Client\Token\AccessToken $token )

Generates a resource owner object from a successful resource owner details request.

Generates a resource owner object from a successful resource owner details request.

Parameters

$response
$token

Returns

ResourceOwnerInterface
protected
# checkResponse( Psr\Http\Message\ResponseInterface $response, array|string $data )

Checks a provider response for errors.

Checks a provider response for errors.

Parameters

$response
$data
Parsed response data

Throws

League\OAuth2\Client\Provider\Exception\IdentityProviderException
Methods inherited from League\OAuth2\Client\Provider\AbstractProvider
__construct(), appendQuery(), authorize(), createAccessToken(), createRequest(), fetchResourceOwnerDetails(), getAccessToken(), getAccessTokenBody(), getAccessTokenOptions(), getAccessTokenQuery(), getAccessTokenRequest(), getAccessTokenResourceOwnerId(), getAccessTokenUrl(), getAllowedClientOptions(), getAuthenticatedRequest(), getAuthorizationHeaders(), getAuthorizationParameters(), getAuthorizationQuery(), getAuthorizationUrl(), getContentType(), getDefaultHeaders(), getGrantFactory(), getHeaders(), getHttpClient(), getParsedResponse(), getRandomState(), getRequest(), getRequestFactory(), getResourceOwner(), getResponse(), getScopeSeparator(), getState(), parseJson(), parseResponse(), prepareAccessTokenResponse(), setGrantFactory(), setHttpClient(), setRequestFactory(), verifyGrant()
Methods used from League\OAuth2\Client\Tool\BearerAuthorizationTrait
getAuthorizationHeaders()
Methods used from League\OAuth2\Client\Tool\QueryBuilderTrait
buildQueryString()
Constants inherited from League\OAuth2\Client\Provider\AbstractProvider
ACCESS_TOKEN_RESOURCE_OWNER_ID, METHOD_GET, METHOD_POST
Properties inherited from League\OAuth2\Client\Provider\AbstractProvider
$clientId, $clientSecret, $grantFactory, $httpClient, $redirectUri, $requestFactory, $state
MercadoLibre PHP SDK API documentation generated by ApiGen