Google_AccessToken_Verify
class Google_AccessToken_Verify extends Verify (View source)
Constants
FEDERATED_SIGNON_CERT_URL |
|
OAUTH2_ISSUER |
|
OAUTH2_ISSUER_HTTPS |
|
Properties
JWT | $jwt | from Verify |
Methods
__construct(ClientInterface $http = null, CacheItemPoolInterface $cache = null, $jwt = null)
Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.
from Verify
array|false
verifyIdToken(string $idToken, string $audience = null)
Verifies an id token and returns the authenticated apiLoginTicket.
from Verify
Details
__construct(ClientInterface $http = null, CacheItemPoolInterface $cache = null, $jwt = null)
Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.
array|false
verifyIdToken(string $idToken, string $audience = null)
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.