| | | 1 | | using System.Text.Json; |
| | | 2 | | using Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Models; |
| | | 3 | | |
| | | 4 | | namespace Elsa.Api.Client.Resources.ExternalAuthentication.Connections.Requests; |
| | | 5 | | |
| | | 6 | | public sealed class ListExternalAuthenticationConnectionsRequest |
| | | 7 | | { |
| | | 8 | | public string? Search { get; set; } |
| | | 9 | | public string? Source { get; set; } |
| | | 10 | | public string? Scope { get; set; } |
| | | 11 | | public string? TenantId { get; set; } |
| | | 12 | | public string? AdapterType { get; set; } |
| | | 13 | | public bool? Enabled { get; set; } |
| | | 14 | | public bool? Valid { get; set; } |
| | | 15 | | public bool? Shadowed { get; set; } |
| | | 16 | | public bool? Archived { get; set; } |
| | | 17 | | public string? Cursor { get; set; } |
| | | 18 | | public int PageSize { get; set; } = 100; |
| | | 19 | | } |
| | | 20 | | |
| | | 21 | | public sealed class SaveExternalAuthenticationConnectionRequest |
| | | 22 | | { |
| | 0 | 23 | | public string Key { get; set; } = ""; |
| | 0 | 24 | | public ExternalAuthenticationConnectionScope Scope { get; set; } = new(); |
| | 0 | 25 | | public string AdapterType { get; set; } = ""; |
| | 0 | 26 | | public int AdapterSettingsVersion { get; set; } |
| | 0 | 27 | | public JsonElement AdapterSettings { get; set; } |
| | 0 | 28 | | public string DisplayName { get; set; } = ""; |
| | 0 | 29 | | public string? IconId { get; set; } |
| | 0 | 30 | | public int Order { get; set; } |
| | 0 | 31 | | public bool IsPreferred { get; set; } |
| | 0 | 32 | | public bool OverridesConfigurationConnection { get; set; } |
| | 0 | 33 | | public ExternalAuthenticationPolicySelection? UnlinkedPolicy { get; set; } |
| | 0 | 34 | | public ICollection<ExternalAuthenticationGrantSourceSelection> PermissionGrantSources { get; set; } = []; |
| | 0 | 35 | | public ExternalAuthenticationClaimProjection ClaimProjection { get; set; } = new(); |
| | 0 | 36 | | public string UpstreamLogoutMode { get; set; } = "disabled"; |
| | 0 | 37 | | public bool ConfirmUnsafeSettings { get; set; } |
| | 0 | 38 | | public bool ConfirmFinalLoginPathOverride { get; set; } |
| | | 39 | | } |
| | | 40 | | |
| | | 41 | | /// <summary>Write-only request for staging managed secret material.</summary> |
| | | 42 | | public sealed class SaveManagedExternalAuthenticationSecretRequest |
| | | 43 | | { |
| | | 44 | | public string ResolverType { get; set; } = ""; |
| | | 45 | | public string Value { get; set; } = ""; |
| | | 46 | | } |