Table of Contents

Interface IGrantsClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface IGrantsClient

Methods

DeleteAllAsync(string, CancellationToken)

Deletes all Grants of a given user.

Task DeleteAllAsync(string userId, CancellationToken cancellationToken = default)

Parameters

userId string
cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

Remarks

A token with scope delete:grants is needed.

DeleteAsync(string, CancellationToken)

Delete an existing Grant

Task DeleteAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The ID of the grant to delete.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

Remarks

A token with scope delete:grants is needed.

GetAllAsync(GetGrantsRequest, PaginationInfo, CancellationToken)

Retrieve all Grants.

Task<IPagedList<Grant>> GetAllAsync(GetGrantsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)

Parameters

request GetGrantsRequest

Specifies criteria to use when querying grants.

pagination PaginationInfo

Specifies pagination info to use.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<Grant>>

An IPagedList<T> containing the grants.

Remarks

A token with scope read:grants is needed