protected property OpenIDConnectGithubClient::$userInfoMapping in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x src/Plugin/OpenIDConnectClient/OpenIDConnectGithubClient.php \Drupal\openid_connect\Plugin\OpenIDConnectClient\OpenIDConnectGithubClient::userInfoMapping
A mapping of OpenID Connect user claims to GitHub user properties.
See https://developer.github.com/v3/users .
Type: array
File
- src/
Plugin/ OpenIDConnectClient/ OpenIDConnectGithubClient.php, line 27
Class
- OpenIDConnectGithubClient
- GitHub OpenID Connect client.
Namespace
Drupal\openid_connect\Plugin\OpenIDConnectClientCode
protected $userInfoMapping = [
'name' => 'name',
'sub' => 'id',
'email' => 'email',
'preferred_username' => 'login',
'picture' => 'avatar_url',
'profile' => 'html_url',
'website' => 'blog',
];