Class GrantsClient
- Namespace
- Auth0.Management
Api .Clients
- Assembly
- Auth0.ManagementApi.dll
- Inheritance
-
Grants
Client
- Implements
- Inherited Members
Constructors
GrantsClient(IManagementConnection, Uri, IDictionary<string, string>)
public GrantsClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnection baseUri
UridefaultHeaders
IDictionary<string, string>
Methods
DeleteAllAsync(string, CancellationToken)
Deletes all Grants of a given user.
Parameters
userId
stringcancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
Remarks
A token with scope delete:grants is needed.
DeleteAsync(string, CancellationToken)
Delete an existing Grant
Parameters
id
stringThe ID of the grant to delete.
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
Remarks
A token with scope delete:grants is needed.
GetAllAsync(GetGrantsRequest, PaginationInfo, CancellationToken)
Retrieve all Grants.
public Task<IPagedList<Grant>> GetAllAsync(GetGrantsRequest request, PaginationInfo pagination = null, CancellationToken cancellationToken = default)
Parameters
request
GetGrants Request Specifies criteria to use when querying grants.
pagination
PaginationInfo Specifies pagination info to use.
cancellationToken
CancellationToken The cancellation token to cancel operation.
Returns
- Task<IPaged
List <Grant>> An IPagedList<T> containing the grants.
Remarks
A token with scope read:grants is needed