メインコンテンツへスキップ
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": []
    }
  }
}

承認

Authorization
string
header
必須

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

ボディ

admin_notification_frequency
enum<string>[]

"admin_notification" が有効な場合に、メール通知を送信する頻度を決定します。 指定可能な値: immediatelydailyweeklymonthly

利用可能なオプション:
immediately,
daily,
weekly,
monthly
enabled
boolean
デフォルト:true

漏えいしたパスワードの検出が有効かどうか。

method
enum<string>
デフォルト:standard

漏えいしたパスワードの検出メソッドの Subscription レベルです。Credential Guard を有効にするには "enhanced" を使用します。 指定可能な値: standard, enhanced

利用可能なオプション:
standard,
enhanced
shields
enum<string>[]

ログイン時に漏えいしたパスワードが検出された場合に実行するアクション。 指定可能な値: blockuser_notificationadmin_notification

利用可能なオプション:
block,
user_notification,
admin_notification
stage
object

レスポンス

漏えいしたパスワードの検出設定を正常に更新しました。

admin_notification_frequency
enum<string>[]

"admin_notification" が有効な場合に、メール通知を送信する頻度を決定します。 指定可能な値: immediatelydailyweeklymonthly

利用可能なオプション:
immediately,
daily,
weekly,
monthly
enabled
boolean
デフォルト:true

漏えいしたパスワードの検出が有効かどうか。

method
enum<string>
デフォルト:standard

漏えいしたパスワードの検出メソッドの Subscription レベルです。Credential Guard を有効にするには "enhanced" を使用します。 指定可能な値: standard, enhanced

利用可能なオプション:
standard,
enhanced
shields
enum<string>[]

ログイン時に漏えいしたパスワードが検出された場合に実行するアクション。 指定可能な値: blockuser_notificationadmin_notification

利用可能なオプション:
block,
user_notification,
admin_notification
stage
object