public function OpenIDConnectGoogleClient::getEndpoints in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x src/Plugin/OpenIDConnectClient/OpenIDConnectGoogleClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectGoogleClient::getEndpoints()
 
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 OpenIDConnectClientInterface::getEndpoints
File
- src/
Plugin/ OpenIDConnectClient/ OpenIDConnectGoogleClient.php, line 37  
Class
- OpenIDConnectGoogleClient
 - Google OpenID Connect client.
 
Namespace
Drupal\openid_connect\Plugin\OpenIDConnectClientCode
public function getEndpoints() {
  // Data from https://accounts.google.com/.well-known/openid-configuration
  return [
    'authorization' => 'https://accounts.google.com/o/oauth2/v2/auth',
    'token' => 'https://oauth2.googleapis.com/token',
    'userinfo' => 'https://openidconnect.googleapis.com/v1/userinfo',
  ];
}