FEDERATED_SIGNON_CERT_URL
FEDERATED_SIGNON_CERT_URL
Wrapper around Google Access Tokens which provides convenience functions
__construct(\GuzzleHttp\ClientInterface $http = null, \Psr\Cache\CacheItemPoolInterface $cache = null, $jwt = null)
Instantiates the class, but does not initiate the login flow, leaving it to the discretion of the caller.
\GuzzleHttp\ClientInterface | $http | |
\Psr\Cache\CacheItemPoolInterface | $cache | |
$jwt |
verifyIdToken( $idToken, $audience = null) : array
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.
$idToken | ||
$audience |
the token payload, if successful