feat: add security configure

This commit is contained in:
Polianin Nikita 2024-05-29 06:42:14 +03:00
parent 38ec80a566
commit d2ef99d0b2

View File

@ -97,6 +97,14 @@ public class Program
return services; return services;
} }
private static IServiceCollection ConfigureSecurity(IServiceCollection services)
{
services.AddSingleton<IAccessToken, JwtTokenService>();
services.AddSingleton<IRevokedToken, MemoryRevokedTokenService>();
return services;
}
public static void Main(string[] args) public static void Main(string[] args)
{ {
Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);