Release v1.0.0 #16

Merged
Wesser merged 492 commits from release/v1.0.0 into master 2025-02-12 09:19:32 +03:00
173 changed files with 5251 additions and 58 deletions
Showing only changes of commit 8408b80c35 - Show all commits
.env
.gitea/workflows
ApiDto
Application
Application.csproj
Common
Cqrs
DependencyInjection.cs
Interfaces/DbContexts
Backend.sln
Domain/Schedule
Endpoint
Persistence
Security

@ -1,6 +1,8 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Mirea.Api.Security.Common.Interfaces;
using Mirea.Api.Security.Services;
using System;
namespace Mirea.Api.Security;
@ -24,6 +26,18 @@ public static class DependencyInjection
Secret = configuration["SECURITY_HASH_TOKEN"]
});
var lifeTimeLogin = TimeSpan.FromMinutes(int.Parse(configuration["SECURITY_LIFE_TIME_1_FA"]!));
services.AddSingleton(provider =>
{
var cache = provider.GetRequiredService<ICacheService>();
return new PreAuthService(cache)
{
Lifetime = lifeTimeLogin
};
});
return services;
}
}