You are here

public function saml_sp_AuthnRequest::__construct in SAML Service Provider 7.2

Same name and namespace in other branches
  1. 7.8 includes/saml_sp.AuthnRequest.inc \saml_sp_AuthnRequest::__construct()

Constructs the AuthnRequest object.

Parameters

OneLogin_Saml2_Settings $settings Settings:

File

includes/saml_sp.AuthnRequest.inc, line 10

Class

saml_sp_AuthnRequest

Code

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');
  }
}