You are here

public function OpenIDConnectGenericClient::getEndpoints in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x src/Plugin/OpenIDConnectClient/OpenIDConnectGenericClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectGenericClient::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/OpenIDConnectGenericClient.php, line 60

Class

OpenIDConnectGenericClient
Generic OpenID Connect client.

Namespace

Drupal\openid_connect\Plugin\OpenIDConnectClient

Code

public function getEndpoints() {
  return [
    'authorization' => $this->configuration['authorization_endpoint'],
    'token' => $this->configuration['token_endpoint'],
    'userinfo' => $this->configuration['userinfo_endpoint'],
  ];
}