You are here

public function OpenIDConnectClientGeneric::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/generic/OpenIDConnectClientGeneric.class.php, line 45
Generic OpenID Connect client.

Class

OpenIDConnectClientGeneric
Implements generic OpenID Connect Client plugin.

Code

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