Fixes on scalar

This commit is contained in:
2026-05-30 03:44:32 +02:00
parent 66a2ccabd5
commit 1bd8bb4bd6
4 changed files with 15 additions and 10 deletions
@@ -8,30 +8,32 @@ public sealed class AuthenticationConfiguration
[Required]
[Url]
public required string MetadataAddress { get; init; }
public required string MetadataAddress { get; set; }
[Required]
public required string IssuerAddress { get; init; }
public required string IssuerAddress { get; set; }
[Required]
public required string AudienceAddress { get; init; }
public required string AudienceAddress { get; set; }
[Required]
public required string ClientId { get; init; }
public required string ClientId { get; set; }
public string? ClientSecret { get; init; }
public string? ClientSecret { get; set; }
[Required]
[Url]
public required string AuthorizationEndpoint { get; init; }
public required string AuthorizationEndpoint { get; set; }
[Required]
[Url]
public required string TokenEndpoint { get; init; }
public required string TokenEndpoint { get; set; }
[Required]
[MinLength(1)]
public required string[] Scopes { get; init; }
public required string[] Scopes { get; set; }
public bool RequireHttpsMetadata { get; init; } = true;
public string? ScalarRedirectUri { get; set; }
public bool RequireHttpsMetadata { get; set; } = true;
}