class ExternalConcreteService extends AbstractService (View source)

Constants

SCOPE_OPENID

SCOPE_SYSTEM

SCOPE_SITE

SCOPE_ACCOUNT

PATH_AUTHORIZE

PATH_TOKEN

Methods

TokenInterface
parseAccessTokenResponse(string $responseBody)

Parses the access token response and returns a TokenInterface.

UriInterface
getAuthorizationEndpoint()

Returns the authorization API endpoint.

UriInterface
getAccessTokenEndpoint()

Returns the access token API endpoint.

UriInterface
getBaseApiUri()

Return a copy of our base api uri

int
getAuthorizationMethod()

Declare that we use the bearer header field We want our headers to be: Authorization: Bearer SOMETOKEN

Details

protected TokenInterface parseAccessTokenResponse(string $responseBody)

Parses the access token response and returns a TokenInterface.

Parameters

string $responseBody

Return Value

TokenInterface

Exceptions

TokenResponseException

UriInterface getAuthorizationEndpoint()

Returns the authorization API endpoint.

Return Value

UriInterface

UriInterface getAccessTokenEndpoint()

Returns the access token API endpoint.

Return Value

UriInterface

UriInterface getBaseApiUri()

Return a copy of our base api uri

Return Value

UriInterface

protected int getAuthorizationMethod()

Declare that we use the bearer header field We want our headers to be: Authorization: Bearer SOMETOKEN

If we didn't declare this everything would break because they'd be Authorization: Bearer OAuth SOMETOKEN

Return Value

int