You are here

protected property OpenIDConnectGithubClient::$userInfoMapping in OpenID Connect / OAuth client 2.x

Same name and namespace in other branches
  1. 8 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 29

Class

OpenIDConnectGithubClient
GitHub OpenID Connect client.

Namespace

Drupal\openid_connect\Plugin\OpenIDConnectClient

Code

protected $userInfoMapping = [
  'name' => 'name',
  'sub' => 'id',
  'email' => 'email',
  'preferred_username' => 'login',
  'picture' => 'avatar_url',
  'profile' => 'html_url',
  'website' => 'blog',
];