public function OpenIDConnectLinkedinClient::getEndpoints in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x src/Plugin/OpenIDConnectClient/OpenIDConnectLinkedinClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectLinkedinClient::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 OpenIDConnectLinkedinClient::getEndpoints()
- OpenIDConnectLinkedinClient::retrieveUserEmail in src/
Plugin/ OpenIDConnectClient/ OpenIDConnectLinkedinClient.php - Get user email.
File
- src/
Plugin/ OpenIDConnectClient/ OpenIDConnectLinkedinClient.php, line 37
Class
- OpenIDConnectLinkedinClient
- LinkedIn OpenID Connect client.
Namespace
Drupal\openid_connect\Plugin\OpenIDConnectClientCode
public function getEndpoints() {
return [
'authorization' => 'https://www.linkedin.com/oauth/v2/authorization',
'token' => 'https://www.linkedin.com/oauth/v2/accessToken',
'userinfo' => 'https://api.linkedin.com/v2/me?projection=(id,localizedFirstName,localizedLastName,profilePicture(displayImage~:playableStreams))',
'useremail' => 'https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))',
];
}