You are here

function saml_sp_request_store in SAML Service Provider 7.2

Same name and namespace in other branches
  1. 7.3 saml_sp.module \saml_sp_request_store()

Store and outbount request ID

1 call to saml_sp_request_store()
saml_sp__track_request in ./saml_sp.module
Track an outbound request.

File

./saml_sp.module, line 825
SAML Service Provider

Code

function saml_sp_request_store($id, $data) {
  $expire = REQUEST_TIME + SAML_SP_REQUEST_STORE_TIMEOUT;
  if (variable_get('saml_sp__debug', FALSE)) {
    watchdog('saml_sp', 'Request data: <pre>@request</pre>', array(
      '@request' => print_r($data, TRUE),
    ), WATCHDOG_DEBUG);
  }
  return db_insert('saml_sp_requests')
    ->fields(array(
    'id' => $id,
    'data' => serialize($data),
    'expires' => $expire,
  ))
    ->execute();
}