You are here

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 {

  /**
   *
   * @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();
  }

}

Classes

Namesort descending Description
Blacklists