Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
Go
package example

import (
    context "context"

    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>",
        ),
    )
    client.Guardian.Factors.List(
        context.TODO(),
    )
}
[
  {
    "enabled": true,
    "name": "sms",
    "trial_expired": true
  }
]

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Réponse

Facteurs récupérés avec succès.

enabled
boolean
défaut:true
requis

Indique si ce facteur est activé (true) ou désactivé (false).

name
enum<string>
défaut:sms

Nom du facteur. Peut être sms, push-notification, email, duo, otp, webauthn-roaming, webauthn-platform ou recovery-code.

Options disponibles:
push-notification,
sms,
email,
duo,
otp,
webauthn-roaming,
webauthn-platform,
recovery-code
Minimum string length: 1
trial_expired
boolean
défaut:true

Indique si les limites de l’essai ont été dépassées.