mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-05-18 16:17:54 +02:00
[WIP] Start impl auth handler
This commit is contained in:
parent
c225576c44
commit
b3763fb795
|
@ -1,3 +1,4 @@
|
||||||
|
using System.Security.Claims;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using DotBased.AspNet.Authority.Managers;
|
using DotBased.AspNet.Authority.Managers;
|
||||||
using DotBased.AspNet.Authority.Models.Options.Auth;
|
using DotBased.AspNet.Authority.Models.Options.Auth;
|
||||||
|
@ -16,8 +17,10 @@ public class AuthorityLoginAuthenticationHandler(IOptionsMonitor<AuthorityLoginO
|
||||||
AuthorityManager manager) : AuthenticationHandler<AuthorityLoginOptions>(options, logger, encoder)
|
AuthorityManager manager) : AuthenticationHandler<AuthorityLoginOptions>(options, logger, encoder)
|
||||||
{
|
{
|
||||||
// Validate credentials
|
// Validate credentials
|
||||||
protected override Task<AuthenticateResult> HandleAuthenticateAsync()
|
protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
var ticket = new AuthenticationTicket(new ClaimsPrincipal(), Scheme.Name);
|
||||||
|
var result = AuthenticateResult.Success(ticket);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user