AccessToken
class AccessToken (View source)
Wrapper around Google Access Tokens which provides convenience functions.
Constants
FEDERATED_SIGNON_CERT_URL |
|
IAP_CERT_URL |
|
OAUTH2_ISSUER |
|
OAUTH2_ISSUER_HTTPS |
|
OAUTH2_REVOKE_URI |
|
Methods
No description
Verifies an id token and returns the authenticated apiLoginTicket.
Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.
Provide a hook to mock calls to the JWT static methods.
Provide a hook to mock calls to the JWT static methods.
Details
__construct(callable $httpHandler = null, CacheItemPoolInterface $cache = null)
No description
array|bool
verify(string $token, array $options = [])
Verifies an id token and returns the authenticated apiLoginTicket.
Throws an exception if the id token is not valid. The audience parameter can be used to control which id tokens are accepted. By default, the id token must have been issued to this OAuth2 client.
bool
revoke(string|array $token, array $options = [])
Revoke an OAuth2 access token or refresh token. This method will revoke the current access token, if a token isn't provided.
protected mixed
callJwtStatic(string $method, array $args = [])
Provide a hook to mock calls to the JWT static methods.
protected mixed
callSimpleJwtDecode(array $args = [])
Provide a hook to mock calls to the JWT static methods.