You are here

function saml_sp__track_request in SAML Service Provider 7.3

Same name and namespace in other branches
  1. 8.3 saml_sp.module \saml_sp__track_request()
  2. 8.2 saml_sp.module \saml_sp__track_request()
  3. 7.8 saml_sp.module \saml_sp__track_request()
  4. 7 saml_sp.module \saml_sp__track_request()
  5. 7.2 saml_sp.module \saml_sp__track_request()
  6. 4.x saml_sp.module \saml_sp__track_request()
  7. 3.x saml_sp.module \saml_sp__track_request()

Track an outbound request.

Parameters

String $id: The unique ID of an outbound request. $param Object $idp IDP data.

String $callback: The function to invoke on completion of a SAML authentication request.

1 call to saml_sp__track_request()
saml_sp_Auth::login in includes/saml_sp.Auth.inc

File

./saml_sp.module, line 684
SAML Service Provider

Code

function saml_sp__track_request($id, $idp, $callback) {
  $data = array(
    'id' => $id,
    'idp' => $idp->machine_name ?: variable_get('saml_sp_drupal_login__idp', ''),
    'callback' => $callback,
  );
  if (variable_get('saml_sp__debug', FALSE)) {
    watchdog('saml_sp', __FUNCTION__ . ' - $data => <pre>@data</pre>', array(
      '@data' => print_r($data, TRUE),
    ), WATCHDOG_DEBUG);
  }
  saml_sp_request_store($id, $data);
}