You are here

SamlSPAuthnRequest.php in SAML Service Provider 8.2

File

src/SAML/SamlSPAuthnRequest.php
View source
<?php

namespace Drupal\saml_sp\SAML;

use OneLogin_Saml2_AuthnRequest;
use OneLogin_Saml2_Settings;
class SamlSPAuthnRequest extends OneLogin_Saml2_AuthnRequest {

  /**
   * Constructs the AuthnRequest object.
   *
   * @param OneLogin_Saml2_Settings $settings Settings
   */
  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>');
      }
    }
  }

}

Classes

Namesort descending Description
SamlSPAuthnRequest