You are here

function services_keyauth_get_key in Services 7

Same name and namespace in other branches
  1. 6.2 auth/services_keyauth/services_keyauth.module \services_keyauth_get_key()

File

auth/services_keyauth/services_keyauth.module, line 117
@author Services Dev Team

Code

function services_keyauth_get_key($kid) {
  $keys = services_keyauth_get_keys();
  foreach ($keys as $key) {
    if ($key->kid == $kid) {
      return $key;
    }
  }
}