Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) DeleteByIdentifier(ctx context.Context, ...) error
- func (c *Client) List(ctx context.Context, id string, ...) (*management.ListUserBlocksResponseContent, error)
- func (c *Client) ListByIdentifier(ctx context.Context, ...) (*management.ListUserBlocksByIdentifierResponseContent, error)
- type RawClient
- func (r *RawClient) Delete(ctx context.Context, id string, opts ...option.RequestOption) (*core.Response[any], error)
- func (r *RawClient) DeleteByIdentifier(ctx context.Context, ...) (*core.Response[any], error)
- func (r *RawClient) List(ctx context.Context, id string, ...) (*core.Response[*management.ListUserBlocksResponseContent], error)
- func (r *RawClient) ListByIdentifier(ctx context.Context, ...) (*core.Response[*management.ListUserBlocksByIdentifierResponseContent], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Delete ¶
Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/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](https://auth0.com/docs/user-profile#block-and-unblock-a-user).
Example:
client.UserBlocks.Delete(
context.TODO(),
"id",
)
func (*Client) DeleteByIdentifier ¶
func (c *Client) DeleteByIdentifier( ctx context.Context, request *management.DeleteUserBlocksByIdentifierRequestParameters, opts ...option.RequestOption, ) error
Remove all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/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](https://auth0.com/docs/user-profile#block-and-unblock-a-user).
Example:
request := &management.DeleteUserBlocksByIdentifierRequestParameters{
Identifier: "identifier",
}
client.UserBlocks.DeleteByIdentifier(
context.TODO(),
request,
)
func (*Client) List ¶
func (c *Client) List( ctx context.Context, id string, request *management.ListUserBlocksRequestParameters, opts ...option.RequestOption, ) (*management.ListUserBlocksResponseContent, error)
Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for the user with the given ID.
Example:
request := &management.ListUserBlocksRequestParameters{
ConsiderBruteForceEnablement: management.Bool(
true,
),
}
client.UserBlocks.List(
context.TODO(),
"id",
request,
)
func (*Client) ListByIdentifier ¶
func (c *Client) ListByIdentifier( ctx context.Context, request *management.ListUserBlocksByIdentifierRequestParameters, opts ...option.RequestOption, ) (*management.ListUserBlocksByIdentifierResponseContent, error)
Retrieve details of all [Brute-force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection) blocks for a user with the given identifier (username, phone number, or email).
Example:
request := &management.ListUserBlocksByIdentifierRequestParameters{
Identifier: "identifier",
ConsiderBruteForceEnablement: management.Bool(
true,
),
}
client.UserBlocks.ListByIdentifier(
context.TODO(),
request,
)
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) DeleteByIdentifier ¶
func (r *RawClient) DeleteByIdentifier( ctx context.Context, request *management.DeleteUserBlocksByIdentifierRequestParameters, opts ...option.RequestOption, ) (*core.Response[any], error)
func (*RawClient) List ¶
func (r *RawClient) List( ctx context.Context, id string, request *management.ListUserBlocksRequestParameters, opts ...option.RequestOption, ) (*core.Response[*management.ListUserBlocksResponseContent], error)
func (*RawClient) ListByIdentifier ¶
func (r *RawClient) ListByIdentifier( ctx context.Context, request *management.ListUserBlocksByIdentifierRequestParameters, opts ...option.RequestOption, ) (*core.Response[*management.ListUserBlocksByIdentifierResponseContent], error)