You are here

function _services_keyauth_set_kid in Services 6.2

Set or get Key ID of key used to authenticate call.

Parameters

A Key ID to set.:

Return value

The Key ID currently set.

2 calls to _services_keyauth_set_kid()
services_get_hash in auth/services_keyauth/services_keyauth.module
Given the necessary data, create a unique hash for key authentication.
services_keyauth_get_kid in auth/services_keyauth/services_keyauth.module
Returns Key ID of key used to authenticate call.

File

auth/services_keyauth/services_keyauth.module, line 156
Provides a key based validation system.

Code

function _services_keyauth_set_kid($caller_kid = NULL) {
  static $kid;
  if (!$kid && $caller_kid) {
    $kid = $caller_kid;
  }
  return $kid;
}