public function OpenIDConnectGenericClient::getEndpoints in OpenID Connect / OAuth client 2.x
Same name and namespace in other branches
- 8 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 182
Class
- OpenIDConnectGenericClient
- Generic OAuth 2.0 OpenID Connect client.
Namespace
Drupal\openid_connect\Plugin\OpenIDConnectClientCode
public function getEndpoints() : array {
return [
'authorization' => $this->configuration['authorization_endpoint'],
'token' => $this->configuration['token_endpoint'],
'userinfo' => $this->configuration['userinfo_endpoint'],
'end_session' => $this->configuration['end_session_endpoint'],
];
}