You are here

saml_sp.AuthnRequest.inc in SAML Service Provider 7.2

Same filename and directory in other branches
  1. 7.8 includes/saml_sp.AuthnRequest.inc

File

includes/saml_sp.AuthnRequest.inc
View source
<?php

class saml_sp_AuthnRequest extends OneLogin_Saml2_AuthnRequest {

  /**
   * Constructs the AuthnRequest object.
   *
   * @param OneLogin_Saml2_Settings $settings Settings
   */
  public function __construct(OneLogin_Saml2_Settings $settings) {
    parent::__construct($settings);
    if (variable_get('saml_sp__debug', FALSE)) {
      watchdog('saml_sp', 'samlp:AuthnRequest =><br/><pre>@request</pre>', array(
        '@request' => $this
          ->getXML(),
      ), WATCHDOG_DEBUG);
    }
    if (variable_get('saml_sp__debug', FALSE) && function_exists('dpm')) {
      dpm($this
        ->getXML(), 'samlp:AuthnRequest');
    }
  }

}

Classes