ExternalConcreteService
class ExternalConcreteService extends AbstractService (View source)
Constants
SCOPE_OPENID |
|
SCOPE_SYSTEM |
|
SCOPE_SITE |
|
SCOPE_ACCOUNT |
|
PATH_AUTHORIZE |
|
PATH_TOKEN |
|
Methods
Parses the access token response and returns a TokenInterface.
Returns the authorization API endpoint.
Returns the access token API endpoint.
Return a copy of our base api uri
Declare that we use the bearer header field We want our headers to be: Authorization: Bearer SOMETOKEN
Always send through and verify "state" parameter
Details
protected 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
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
bool
needsStateParameterInAuthUrl()
Always send through and verify "state" parameter