Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK-3641] Support stage property in Breached Password Detection configuration #591

Merged
merged 3 commits into from
Oct 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@

namespace Auth0.ManagementApi.Models.AttackProtection
{
public class BreachedPasswordDetectionStage
{
public class StageEntry {
/// <summary>
/// Action to take when a breached password is detected. Possible values: "block", "admin_notification".
/// </summary>
[JsonProperty("shields")]
public IList<string> Shields { get; set; }
}

/// <summary>
/// Configuration options that apply before every user registration attempt.
/// </summary>
[JsonProperty("pre-user-registration")]
public StageEntry PreUserRegistration { get; set; }
}

public class BreachedPasswordDetection
{
/// <summary>
Expand All @@ -28,6 +45,12 @@ public class BreachedPasswordDetection
/// </summary>
[JsonProperty("method")]
public string Method { get; set; }

/// <summary>
/// Holds per-stage configuration options (shiels).
ewanharris marked this conversation as resolved.
Show resolved Hide resolved
/// </summary>
[JsonProperty("stage")]
public Stage Stage { get; set; }
ewanharris marked this conversation as resolved.
Show resolved Hide resolved
}

}