Passer au contenu principal
PATCH
https://{tenantDomain}/api/v2
/
attack-protection
/
breached-password-detection
Go
package example

import (
    context "context"

    attackprotection "github.com/auth0/go-auth0/management/management/attackprotection"
    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 := &attackprotection.UpdateBreachedPasswordDetectionSettingsRequestContent{}
    client.AttackProtection.BreachedPasswordDetection.Update(
        context.TODO(),
        request,
    )
}
{
  "admin_notification_frequency": [],
  "enabled": true,
  "method": "standard",
  "shields": [],
  "stage": {
    "pre-change-password": {
      "shields": []
    },
    "pre-user-registration": {
      "shields": []
    }
  }
}

Autorisations

Authorization
string
header
requis

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

Corps

admin_notification_frequency
enum<string>[]

Lorsque « admin_notification » est activé, détermine la fréquence d’envoi des notifications par courriel. Valeurs possibles : immediately, daily, weekly, monthly.

Options disponibles:
immediately,
daily,
weekly,
monthly
enabled
boolean
défaut:true

Indique si la détection des mots de passe compromis est active.

method
enum<string>
défaut:standard

Le niveau d’abonnement pour les méthodes de détection des mots de passe compromis. Utilisez "enhanced" pour activer Credential Guard. Valeurs possibles : standard, enhanced.

Options disponibles:
standard,
enhanced
shields
enum<string>[]

Action à entreprendre lorsqu’un mot de passe compromis est détecté pendant une connexion. Valeurs possibles : block, user_notification, admin_notification.

Options disponibles:
block,
user_notification,
admin_notification
stage
object

Réponse

Paramètres de la détection des mots de passe compromis mis à jour avec succès.

admin_notification_frequency
enum<string>[]

Lorsque « admin_notification » est activé, détermine la fréquence d’envoi des notifications par courriel. Valeurs possibles : immediately, daily, weekly, monthly.

Options disponibles:
immediately,
daily,
weekly,
monthly
enabled
boolean
défaut:true

Indique si la détection des mots de passe compromis est active.

method
enum<string>
défaut:standard

Le niveau d’abonnement pour les méthodes de détection des mots de passe compromis. Utilisez "enhanced" pour activer Credential Guard. Valeurs possibles : standard, enhanced.

Options disponibles:
standard,
enhanced
shields
enum<string>[]

Action à entreprendre lorsqu’un mot de passe compromis est détecté pendant une connexion. Valeurs possibles : block, user_notification, admin_notification.

Options disponibles:
block,
user_notification,
admin_notification
stage
object