You are here

public function OpenIDConnectClientGoogle::getEndpoints in OpenID Connect / OAuth client 7

Returns an array of endpoints.

Return value

array An array with the following keys:

  • authorization: The full url to the authorization endpoint.
  • token: The full url to the token endpoint.
  • userinfo: The full url to the userinfo endpoint.

Overrides OpenIDConnectClientBase::getEndpoints

File

plugins/openid_connect_client/google/OpenIDConnectClientGoogle.class.php, line 16
OpenID Connect client for Google.

Class

OpenIDConnectClientGoogle
Implements OpenID Connect Client plugin for Google.

Code

public function getEndpoints() {
  return array(
    'authorization' => 'https://accounts.google.com/o/oauth2/auth',
    'token' => 'https://accounts.google.com/o/oauth2/token',
    'userinfo' => 'https://openidconnect.googleapis.com/v1/userinfo',
  );
}