Class CreateFederationProviderRequest
public sealed class CreateFederationProviderRequest
Inheritance
Properties
Authority
[Url]
public string? Authority { get; init; }
AutoProvision
public bool AutoProvision { get; init; }
ClaimMappings
public Dictionary<string, string>? ClaimMappings { get; init; }
ClientId
[Required]
[StringLength(200, MinimumLength = 1)]
public required string ClientId { get; init; }
ClientSecret
OAuth2 client_secret. Encrypted at rest via DataProtection. Write-only. Null or the empty string = no secret;
public string? ClientSecret { get; init; }
DisplayName
[Required]
[StringLength(200, MinimumLength = 1)]
public required string DisplayName { get; init; }
Enabled
public bool Enabled { get; init; }
Kind
[Required]
[RegularExpression("^(oidc|github)$", ErrorMessage = "Kind must be one of: oidc | github.")]
public required string Kind { get; init; }
Priority
public int Priority { get; init; }
ProviderId
[Required]
[RegularExpression("^[a-z0-9][a-z0-9_-]*$", ErrorMessage = "ProviderId must be lowercase, start with letter/digit, and contain only [a-z0-9_-].")]
public required string ProviderId { get; init; }
Scopes
public string[]? Scopes { get; init; }