public function OpenIDConnectGithubClient::getEndpoints in OpenID Connect / OAuth client 2.x
Same name and namespace in other branches
- 8 src/Plugin/OpenIDConnectClient/OpenIDConnectGithubClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectGithubClient::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
1 call to OpenIDConnectGithubClient::getEndpoints()
- OpenIDConnectGithubClient::retrieveUserInfo in src/
Plugin/ OpenIDConnectClient/ OpenIDConnectGithubClient.php - Retrieves user info: additional user profile data.
File
- src/
Plugin/ OpenIDConnectClient/ OpenIDConnectGithubClient.php, line 56
Class
- OpenIDConnectGithubClient
- GitHub OpenID Connect client.
Namespace
Drupal\openid_connect\Plugin\OpenIDConnectClientCode
public function getEndpoints() : array {
return [
'authorization' => 'https://github.com/login/oauth/authorize',
'token' => 'https://github.com/login/oauth/access_token',
'userinfo' => 'https://api.github.com/user',
];
}