Blacklists.php in Auth0 Single Sign On 8.2
File
vendor/auth0/auth0-php/src/API/Management/Blacklists.php
View source
<?php
namespace Auth0\SDK\API\Management;
class Blacklists extends GenericResource {
public function getAll($aud) {
return $this->apiClient
->method('get')
->addPath('blacklists')
->addPath('tokens')
->withParam('aud', $aud)
->call();
}
public function blacklist($aud, $jti) {
return $this->apiClient
->method('post')
->addPath('blacklists')
->addPath('tokens')
->withBody(json_encode([
'aud' => $aud,
'jti' => $jti,
]))
->call();
}
}