| | | 1 | | namespace Elsa.ExternalAuthentication.Options; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Identifies a deployment-installed External Authentication extension without |
| | | 5 | | /// requiring its runtime service to be instantiated during options validation. |
| | | 6 | | /// </summary> |
| | 98 | 7 | | public sealed record ExternalAuthenticationExtensionRegistration( |
| | 392 | 8 | | ExternalAuthenticationExtensionKind Kind, |
| | 196 | 9 | | string Type); |
| | | 10 | | |
| | | 11 | | /// <summary>Identifies the extension registry populated by a deployment registration.</summary> |
| | | 12 | | public enum ExternalAuthenticationExtensionKind |
| | | 13 | | { |
| | | 14 | | /// <summary>A provider protocol adapter.</summary> |
| | | 15 | | Adapter, |
| | | 16 | | /// <summary>An unlinked external identity admission policy.</summary> |
| | | 17 | | UnlinkedIdentityPolicy, |
| | | 18 | | /// <summary>An Elsa permission grant source.</summary> |
| | | 19 | | PermissionGrantSource |
| | | 20 | | , |
| | | 21 | | /// <summary>A trusted deployed external-to-Elsa user matcher.</summary> |
| | | 22 | | ExternalUserMatcher |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Contains the deployment-installed External Authentication extension catalog. |
| | | 27 | | /// </summary> |
| | | 28 | | public sealed class ExternalAuthenticationExtensionOptions |
| | | 29 | | { |
| | | 30 | | /// <summary>Startup-installed extensions used for duplicate and allowlist validation.</summary> |
| | | 31 | | public ICollection<ExternalAuthenticationExtensionRegistration> Registrations { get; } = []; |
| | | 32 | | } |