Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
@@ -0,0 +1,21 @@
using System.Runtime.Serialization;

namespace Auth0.ManagementApi.Models;

/// <summary>
/// Async approval notification channels for a client
/// </summary>
public enum AsyncApprovalNotificationChannels
{
/// <summary>
/// Client uses Guardian Push notification channel with CIBA flow
/// </summary>
[EnumMember(Value = "guardian-push")]
GuardianPush,

/// <summary>
/// Client uses email notification channel with CIBA flow
/// </summary>
[EnumMember(Value = "email")]
Email
}
6 changes: 6 additions & 0 deletions src/Auth0.ManagementApi/Models/Client/ClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,10 @@ public abstract class ClientBase
/// </summary>
[JsonProperty("session_transfer")]
public SessionTransfer? SessionTransfer { get; set; }

/// <summary>
/// Configure the notification channel(s) to use with the CIBA flow
/// </summary>
[JsonProperty("async_approval_notification_channels", ItemConverterType = typeof(StringEnumConverter))]
public AsyncApprovalNotificationChannels[]? AsyncApprovalNotificationChannels { get; set; }
}