You are here

SamlSPAuthnRequest.php in SAML Service Provider 3.x

File

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

namespace Drupal\saml_sp\SAML;

use OneLogin\Saml2\AuthnRequest;
use OneLogin\Saml2\Settings;

/**
 * Constructs the authentication request.
 */
class SamlSPAuthnRequest extends AuthnRequest {

  /**
   * {@inheritdoc}
   */
  public function __construct(Settings $settings, $forceAuthn = FALSE, $isPassive = FALSE, $setNameIdPolicy = TRUE, $nameIdValueReq = NULL) {
    parent::__construct($settings, $forceAuthn, $isPassive, $setNameIdPolicy, $nameIdValueReq);
    if (\Drupal::config('saml_sp.settings')
      ->get('debug')) {
      _saml_sp__debug('samlp:AuthnRequest', $this);
    }
  }

}

Classes

Namesort descending Description
SamlSPAuthnRequest Constructs the authentication request.