Reimplementing Authorization system

This commit is contained in:
max
2024-12-01 03:13:55 +01:00
parent eb277e0937
commit 4580c5f5dc
31 changed files with 250 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
namespace DotBased.ASP.Authentication;
public class BasedAuthenticationBuilder
{
public BasedAuthenticationBuilder(Type authRepository)
{
if (authRepository.IsValueType)
{
throw new ArgumentException("Type cannot be a value type!", nameof(authRepository));
}
AuthenticationRepositoryType = authRepository;
}
public Type AuthenticationRepositoryType { get; }
}