mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-17 21:12:22 +01:00
NostrAuth NoResult
This commit is contained in:
parent
0408f77dea
commit
6069619783
@ -30,12 +30,12 @@ public class NostrAuthHandler : AuthenticationHandler<NostrAuthOptions>
|
||||
var auth = Request.Headers.Authorization.FirstOrDefault()?.Trim();
|
||||
if (string.IsNullOrEmpty(auth))
|
||||
{
|
||||
return AuthenticateResult.Fail("Missing Authorization header");
|
||||
return AuthenticateResult.NoResult();
|
||||
}
|
||||
|
||||
if (!auth.StartsWith(NostrAuth.Scheme))
|
||||
{
|
||||
return AuthenticateResult.Fail("Invalid auth scheme");
|
||||
return AuthenticateResult.NoResult();
|
||||
}
|
||||
|
||||
var token = auth[6..];
|
||||
|
Loading…
x
Reference in New Issue
Block a user