diff --git a/DotBased.AspNet.Authority/Handlers/AuthorityLoginAuthenticationHandler.cs b/DotBased.AspNet.Authority/Handlers/AuthorityLoginAuthenticationHandler.cs index 2cd3a0c..dc65a0a 100644 --- a/DotBased.AspNet.Authority/Handlers/AuthorityLoginAuthenticationHandler.cs +++ b/DotBased.AspNet.Authority/Handlers/AuthorityLoginAuthenticationHandler.cs @@ -1,3 +1,4 @@ +using System.Security.Claims; using System.Text.Encodings.Web; using DotBased.AspNet.Authority.Managers; using DotBased.AspNet.Authority.Models.Options.Auth; @@ -16,8 +17,10 @@ public class AuthorityLoginAuthenticationHandler(IOptionsMonitor(options, logger, encoder) { // Validate credentials - protected override Task HandleAuthenticateAsync() + protected override async Task HandleAuthenticateAsync() { - throw new NotImplementedException(); + var ticket = new AuthenticationTicket(new ClaimsPrincipal(), Scheme.Name); + var result = AuthenticateResult.Success(ticket); + return result; } } \ No newline at end of file