userblocks

package
v3.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (c *Client) Delete(
	ctx context.Context,

	id string,
	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 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

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

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

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) Delete

func (r *RawClient) Delete(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) (*core.Response[any], error)

func (*RawClient) DeleteByIdentifier

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL