You are here

protected function SamlService::getSamlAuth in SAML Authentication 8.2

Same name and namespace in other branches
  1. 8.3 src/SamlService.php \Drupal\samlauth\SamlService::getSamlAuth()
  2. 4.x src/SamlService.php \Drupal\samlauth\SamlService::getSamlAuth()

Returns an initialized Auth class from the SAML Toolkit.

File

src/SamlService.php, line 379

Class

SamlService
Governs communication between the SAML toolkit and the IDP / login behavior.

Namespace

Drupal\samlauth

Code

protected function getSamlAuth() {
  if (!isset($this->samlAuth)) {
    $this->samlAuth = new OneLogin_Saml2_Auth(static::reformatConfig($this->config));
  }
  return $this->samlAuth;
}