You are here

public function LinkedInAuthManager::getUserInfo in Social Auth LinkedIn 8.2

Same name and namespace in other branches
  1. 8 src/LinkedinAuthManager.php \Drupal\social_auth_linkedin\LinkedinAuthManager::getUserInfo()
  2. 3.x src/LinkedInAuthManager.php \Drupal\social_auth_linkedin\LinkedInAuthManager::getUserInfo()

File

src/LinkedInAuthManager.php, line 44

Class

LinkedInAuthManager
Contains all the logic for LinkedIn OAuth2 authentication.

Namespace

Drupal\social_auth_linkedin

Code

public function getUserInfo() {
  if (!$this->user) {
    $this->user = $this->client
      ->getResourceOwner($this
      ->getAccessToken());
  }
  return $this->user;
}