Init Git
This commit is contained in:
6
AMREZ.EOP.Domain/Shared/Contracts/AuthPolicies.cs
Normal file
6
AMREZ.EOP.Domain/Shared/Contracts/AuthPolicies.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace AMREZ.EOP.Domain.Shared.Contracts;
|
||||
|
||||
public static class AuthPolicies
|
||||
{
|
||||
public const string Scheme = "AuthCookie";
|
||||
}
|
||||
8
AMREZ.EOP.Domain/Shared/HumanResources/AddressType.cs
Normal file
8
AMREZ.EOP.Domain/Shared/HumanResources/AddressType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Domain.Shared.HumanResources;
|
||||
|
||||
public enum AddressType
|
||||
{
|
||||
Home = 1,
|
||||
Mailing = 2,
|
||||
Other = 9
|
||||
}
|
||||
9
AMREZ.EOP.Domain/Shared/HumanResources/EmploymentType.cs
Normal file
9
AMREZ.EOP.Domain/Shared/HumanResources/EmploymentType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Domain.Shared.HumanResources;
|
||||
|
||||
public enum EmploymentType
|
||||
{
|
||||
Permanent = 1,
|
||||
Contract = 2,
|
||||
PartTime = 3,
|
||||
Intern = 4
|
||||
}
|
||||
9
AMREZ.EOP.Domain/Shared/HumanResources/Gender.cs
Normal file
9
AMREZ.EOP.Domain/Shared/HumanResources/Gender.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Domain.Shared.HumanResources;
|
||||
|
||||
public enum Gender
|
||||
{
|
||||
Unknown = 0,
|
||||
Male = 1,
|
||||
Female = 2,
|
||||
Other = 3
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace AMREZ.EOP.Domain.Shared.Tenancy;
|
||||
|
||||
public static class HttpContextTenantExtensions
|
||||
{
|
||||
public static string? GetTargetTenantKey(this HttpContext http)
|
||||
{
|
||||
return http.Items.TryGetValue("TargetTenantKey", out var v)
|
||||
? v as string
|
||||
: http.Request.Headers["X-Tenant"].ToString()?.Trim().ToLowerInvariant();
|
||||
}
|
||||
}
|
||||
8
AMREZ.EOP.Domain/Shared/Tenancy/TenantMode.cs
Normal file
8
AMREZ.EOP.Domain/Shared/Tenancy/TenantMode.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Domain.Shared.Tenancy;
|
||||
|
||||
public enum TenantMode
|
||||
{
|
||||
Rls,
|
||||
Schema,
|
||||
Database
|
||||
}
|
||||
11
AMREZ.EOP.Domain/Shared/๊Users/ExternalProvider.cs
Normal file
11
AMREZ.EOP.Domain/Shared/๊Users/ExternalProvider.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace AMREZ.EOP.Domain.Shared._Users;
|
||||
|
||||
public enum ExternalProvider
|
||||
{
|
||||
Google = 1,
|
||||
Apple = 2,
|
||||
Microsoft = 3,
|
||||
Facebook = 4,
|
||||
Line = 5,
|
||||
Other = 9
|
||||
}
|
||||
9
AMREZ.EOP.Domain/Shared/๊Users/IdentityType.cs
Normal file
9
AMREZ.EOP.Domain/Shared/๊Users/IdentityType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Domain.Shared._Users;
|
||||
|
||||
public enum IdentityType
|
||||
{
|
||||
Email = 1,
|
||||
Phone = 2,
|
||||
Username = 3,
|
||||
Other = 9
|
||||
}
|
||||
9
AMREZ.EOP.Domain/Shared/๊Users/MfaType.cs
Normal file
9
AMREZ.EOP.Domain/Shared/๊Users/MfaType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Domain.Shared._Users;
|
||||
|
||||
public enum MfaType
|
||||
{
|
||||
Totp = 1,
|
||||
Sms = 2,
|
||||
EmailOtp = 3,
|
||||
WebAuthn = 4
|
||||
}
|
||||
Reference in New Issue
Block a user