Cheetah
|
Public Member Functions | |
getClientKey ($client_id, $subject) | |
getJti ($client_id, $subject, $audience, $expiration, $jti) | |
setJti ($client_id, $subject, $audience, $expiration, $jti) | |
Implement this interface to specify where the OAuth2 Server should get the JWT key for clients
@TODO consider extending ClientInterface, as this will almost always be the same storage as retrieving clientData
Definition at line 15 of file JwtBearerInterface.php.
OAuth2\Storage\JwtBearerInterface::getClientKey | ( | $client_id, | |
$subject | |||
) |
Get the public key associated with a client_id
$client_id | Client identifier to be checked with. |
Implemented in OAuth2\Storage\Redis, OAuth2\Storage\Pdo, OAuth2\Storage\Mongo, OAuth2\Storage\Memory, OAuth2\Storage\DynamoDB, OAuth2\Storage\CouchbaseDB, and OAuth2\Storage\Cassandra.
OAuth2\Storage\JwtBearerInterface::getJti | ( | $client_id, | |
$subject, | |||
$audience, | |||
$expiration, | |||
$jti | |||
) |
Get a jti (JSON token identifier) by matching against the client_id, subject, audience and expiration.
$client_id | Client identifier to match. |
$subject | The subject to match. |
$audience | The audience to match. |
$expiration | The expiration of the jti. |
$jti | The jti to match. |
Implemented in OAuth2\Storage\Pdo, OAuth2\Storage\Memory, OAuth2\Storage\DynamoDB, OAuth2\Storage\Redis, OAuth2\Storage\Mongo, OAuth2\Storage\CouchbaseDB, and OAuth2\Storage\Cassandra.
OAuth2\Storage\JwtBearerInterface::setJti | ( | $client_id, | |
$subject, | |||
$audience, | |||
$expiration, | |||
$jti | |||
) |
Store a used jti so that we can check against it to prevent replay attacks.
$client_id | Client identifier to insert. |
$subject | The subject to insert. |
$audience | The audience to insert. |
$expiration | The expiration of the jti. |
$jti | The jti to insert. |
Implemented in OAuth2\Storage\Pdo, OAuth2\Storage\Memory, OAuth2\Storage\DynamoDB, OAuth2\Storage\Redis, OAuth2\Storage\Mongo, OAuth2\Storage\CouchbaseDB, and OAuth2\Storage\Cassandra.