Interface IBlacklistedTokensClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
public interface IBlacklistedTokensClient
Methods
CreateAsync(BlacklistedTokenCreateRequest, CancellationToken)
Blacklists a JWT token.
Task CreateAsync(BlacklistedTokenCreateRequest request, CancellationToken cancellationToken = default)
Parameters
request
BlacklistedTokenCreateRequestThe BlacklistedTokenCreateRequest containing the information of the token to blacklist.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
GetAllAsync(string, CancellationToken)
Gets all the blacklisted claims.
Task<IList<BlacklistedToken>> GetAllAsync(string aud, CancellationToken cancellationToken = default)
Parameters
aud
stringThe JWT's aud claim. The client_id of the client for which it was issued.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<IList<BlacklistedToken>>
A list of BlacklistedToken objects.