feat: add IAuthenticator interface and TokenAuthenticator with constant-time comparison
This commit is contained in:
9
src/NATS.Server/Auth/AuthResult.cs
Normal file
9
src/NATS.Server/Auth/AuthResult.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace NATS.Server.Auth;
|
||||
|
||||
public sealed class AuthResult
|
||||
{
|
||||
public required string Identity { get; init; }
|
||||
public string? AccountName { get; init; }
|
||||
public Permissions? Permissions { get; init; }
|
||||
public DateTimeOffset? Expiry { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user