You are here

class Blacklists in Auth0 Single Sign On 8.2

Hierarchy

Expanded class hierarchy of Blacklists

1 file declares its use of Blacklists
Management.php in vendor/auth0/auth0-php/src/API/Management.php

File

vendor/auth0/auth0-php/src/API/Management/Blacklists.php, line 5

Namespace

Auth0\SDK\API\Management
View source
class Blacklists extends GenericResource {

  /**
   *
   * @param  string $aud
   * @return mixed
   */
  public function getAll($aud) {
    return $this->apiClient
      ->method('get')
      ->addPath('blacklists')
      ->addPath('tokens')
      ->withParam('aud', $aud)
      ->call();
  }

  /**
   *
   * @param  string $aud
   * @param  string $jti
   * @return mixed
   */
  public function blacklist($aud, $jti) {
    return $this->apiClient
      ->method('post')
      ->addPath('blacklists')
      ->addPath('tokens')
      ->withBody(json_encode([
      'aud' => $aud,
      'jti' => $jti,
    ]))
      ->call();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Blacklists::blacklist public function
Blacklists::getAll public function
GenericResource::$apiClient protected property Injected ApiClient instance to use.
GenericResource::checkEmptyOrInvalidString protected function Check that a variable is a string and is not empty.
GenericResource::checkInvalidPermissions protected function Check for invalid permissions with an array of permissions.
GenericResource::getApiClient public function Get the injected ApiClient instance.
GenericResource::normalizeIncludeTotals protected function Normalize include_totals parameter.
GenericResource::normalizePagination protected function Normalize pagination parameters.
GenericResource::__construct public function GenericResource constructor.