You are here

public function SamlSPAuthnRequest::__construct in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 src/SAML/SamlSPAuthnRequest.php \Drupal\saml_sp\SAML\SamlSPAuthnRequest::__construct()
  2. 4.x src/SAML/SamlSPAuthnRequest.php \Drupal\saml_sp\SAML\SamlSPAuthnRequest::__construct()
  3. 3.x src/SAML/SamlSPAuthnRequest.php \Drupal\saml_sp\SAML\SamlSPAuthnRequest::__construct()

Constructs the AuthnRequest object.

Parameters

OneLogin_Saml2_Settings $settings Settings:

File

src/SAML/SamlSPAuthnRequest.php, line 15

Class

SamlSPAuthnRequest

Namespace

Drupal\saml_sp\SAML

Code

public function __construct(OneLogin_Saml2_Settings $settings, $forceAuthn = false, $isPassive = false, $setNameIdPolicy = true) {
  parent::__construct($settings, $forceAuthn, $isPassive, $setNameIdPolicy);
  if (\Drupal::config('saml_sp.settings')
    ->get('debug')) {
    if (\Drupal::moduleHandler()
      ->moduleExists('devel')) {
      dpm($this, 'samlp:AuthnRequest');
    }
    else {
      drupal_set_message('samlp:AuthnRequest =></br><pre>' . print_r($this, TRUE) . '</pre>');
    }
  }
}