From b3763fb795158d8d57e9c638f6bb83035a6c5253 Mon Sep 17 00:00:00 2001 From: max Date: Sun, 18 May 2025 01:01:07 +0200 Subject: [PATCH] [WIP] Start impl auth handler --- .../Handlers/AuthorityLoginAuthenticationHandler.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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