You are here

protected function LinkedinAuthManager::getCode in Social Auth LinkedIn 8

Gets the code returned by Linkedin to authenticate.

Return value

string The code string returned by Linkedin.

1 call to LinkedinAuthManager::getCode()
LinkedinAuthManager::getAccessToken in src/LinkedinAuthManager.php

File

src/LinkedinAuthManager.php, line 76

Class

LinkedinAuthManager
Manages the authentication requests.

Namespace

Drupal\social_auth_linkedin

Code

protected function getCode() {
  if (!$this->code) {
    $this->code = $this->request->query
      ->get('code');
  }
  return $this->code;
}