This commit is contained in:
max
2025-05-18 18:03:40 +02:00
parent b3763fb795
commit 217c55df00
8 changed files with 75 additions and 22 deletions

View File

@@ -19,8 +19,9 @@ public class AuthorityLoginAuthenticationHandler(IOptionsMonitor<AuthorityLoginO
// Validate credentials
protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
{
var ticket = new AuthenticationTicket(new ClaimsPrincipal(), Scheme.Name);
var result = AuthenticateResult.Success(ticket);
//TODO: Check headers for login credentials.
/*var ticket = new AuthenticationTicket(new ClaimsPrincipal(), Scheme.Name);*/
var result = AuthenticateResult.Fail("No login found!");
return result;
}
}