Class UserBlocksClient
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
public class UserBlocksClient : IUserBlocksClient
- Inheritance
-
UserBlocksClient
- Implements
- Inherited Members
- Extension Methods
Methods
DeleteAsync(string, RequestOptions?, CancellationToken)
Remove all Brute-force Protection blocks for the user with the given ID.
Note: This endpoint does not unblock users that were blocked by a tenant administrator.
public Task DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.UserBlocks.DeleteAsync("id");
DeleteByIdentifierAsync(DeleteUserBlocksByIdentifierRequestParameters, RequestOptions?, CancellationToken)
Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email).
Note: This endpoint does not unblock users that were blocked by a tenant administrator.
public Task DeleteByIdentifierAsync(DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestDeleteUserBlocksByIdentifierRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.UserBlocks.DeleteByIdentifierAsync(
new DeleteUserBlocksByIdentifierRequestParameters { Identifier = "identifier" }
);
ListAsync(string, ListUserBlocksRequestParameters, RequestOptions?, CancellationToken)
Retrieve details of all Brute-force Protection blocks for the user with the given ID.
public WithRawResponseTask<ListUserBlocksResponseContent> ListAsync(string id, ListUserBlocksRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestListUserBlocksRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.UserBlocks.ListAsync(
"id",
new ListUserBlocksRequestParameters { ConsiderBruteForceEnablement = true }
);
ListByIdentifierAsync(ListUserBlocksByIdentifierRequestParameters, RequestOptions?, CancellationToken)
Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email).
public WithRawResponseTask<ListUserBlocksByIdentifierResponseContent> ListByIdentifierAsync(ListUserBlocksByIdentifierRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestListUserBlocksByIdentifierRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.UserBlocks.ListByIdentifierAsync(
new ListUserBlocksByIdentifierRequestParameters
{
Identifier = "identifier",
ConsiderBruteForceEnablement = true,
}
);