Compare commits
2 Commits
70780d620a
...
21866d54cb
Author | SHA1 | Date | |
---|---|---|---|
21866d54cb | |||
eba11f515d |
@ -13,7 +13,7 @@ public class JwtTokenService : IAccessToken
|
||||
public required string Audience { private get; init; }
|
||||
public TimeSpan Lifetime { private get; init; }
|
||||
|
||||
public ReadOnlyMemory<byte> EncryptionKey { get; init; }
|
||||
public ReadOnlyMemory<byte> EncryptionKey { private get; init; }
|
||||
public ReadOnlyMemory<byte> SigningKey { private get; init; }
|
||||
|
||||
public (string Token, DateTime ExpireIn) GenerateToken(string userId)
|
||||
|
@ -14,7 +14,6 @@ public static class SecureConfiguration
|
||||
{
|
||||
services.AddSecurityServices(configuration);
|
||||
|
||||
services.AddSingleton<IAccessToken, JwtTokenService>();
|
||||
services.AddSingleton<IRevokedToken, MemoryRevokedTokenService>();
|
||||
|
||||
if (configuration.Get<GeneralConfig>()?.CacheSettings?.TypeDatabase == CacheSettings.CacheEnum.Redis)
|
||||
|
Loading…
Reference in New Issue
Block a user