1
0

BasicAuthenticationAttribute now respects the IBasicAuthenticationValidator.Realm when the own Realm property is not set. IBasicAuthenticationValidator.Realm is now a read-only property (removed public set).

This commit is contained in:
2022-07-04 19:30:40 +02:00
parent bfe500dfa1
commit 8754e40c91
2 changed files with 11 additions and 4 deletions

View File

@@ -10,9 +10,9 @@ namespace AMWD.Common.AspNetCore.BasicAuthentication
public interface IBasicAuthenticationValidator
{
/// <summary>
/// Gets or sets the realm to use when requesting authentication.
/// Gets the realm to use when requesting authentication.
/// </summary>
string Realm { get; set; }
string Realm { get; }
/// <summary>
/// Validates a username and password for Basic Authentication.