public function Storage::setJti in OAuth2 Server 7
File
- lib/Drupal/oauth2_server/Storage.php, line 279
Class
- Storage
- Provides Drupal storage (through the underlying Entity API) for the library.
Namespace
Drupal\oauth2_server
Code
public function setJti($client_key, $subject, $audience, $expires, $jti) {
$client = oauth2_server_client_load($client_key);
if (!$client) {
return;
}
db_insert('oauth2_server_jti')
->fields(array(
'client_id' => $client->client_id,
'subject' => $subject,
'jti' => $jti,
'expires' => $expires,
))
->execute();
}