package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.ListUserBlocksByIdentifierRequestParameters{
Identifier: "identifier",
ConsiderBruteForceEnablement: management.Bool(
true,
),
}
client.UserBlocks.ListByIdentifier(
context.TODO(),
request,
)
}{
"blocked_for": [
{
"identifier": "john.doe@gmail.com",
"ip": "10.0.0.1",
"connection": "<string>"
}
]
}Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email).
package example
import (
context "context"
management "github.com/auth0/go-auth0/management/management"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &management.ListUserBlocksByIdentifierRequestParameters{
Identifier: "identifier",
ConsiderBruteForceEnablement: management.Bool(
true,
),
}
client.UserBlocks.ListByIdentifier(
context.TODO(),
request,
)
}{
"blocked_for": [
{
"identifier": "john.doe@gmail.com",
"ip": "10.0.0.1",
"connection": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Should be any of a username, phone number, or email.
If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses.
If true and Brute Force Protection is disabled, will return an empty list.User successfully retrieved.
Array of identifier + IP address pairs. IP address is optional, and may be omitted in certain circumstances (such as Account Lockout mode).
Show child attributes
Cette page vous a-t-elle été utile ?