Init Git
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.AddEmailIdentity;
|
||||
|
||||
public sealed class AddEmailIdentityRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public string Email { get; set; } = default!;
|
||||
public bool IsPrimary { get; set; } = true;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.ChangePassword;
|
||||
|
||||
public sealed class ChangePasswordRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public string OldPassword { get; set; } = default!;
|
||||
public string NewPassword { get; set; } = default!;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.DisableMfa;
|
||||
|
||||
public sealed class DisableMfaRequest
|
||||
{
|
||||
public Guid FactorId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.EnableTotp;
|
||||
|
||||
public sealed class EnableTotpRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public string Label { get; set; } = default!;
|
||||
public string Secret { get; set; } = default!;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.EnableTotp;
|
||||
|
||||
public sealed record EnableTotpResponse(
|
||||
Guid FactorId,
|
||||
string Label
|
||||
);
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Login;
|
||||
|
||||
public sealed class LoginRequest
|
||||
{
|
||||
public string? Tenant { get; set; }
|
||||
public string Email { get; set; } = default!;
|
||||
public string Password { get; set; } = default!;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Login;
|
||||
|
||||
public sealed record LoginResponse(
|
||||
Guid UserId,
|
||||
string DisplayName,
|
||||
string Email,
|
||||
string TenantId
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Logout;
|
||||
|
||||
public sealed class LogoutRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public Guid SessionId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.LogoutAll;
|
||||
|
||||
public sealed class LogoutAllRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Register;
|
||||
|
||||
public sealed class RegisterRequest
|
||||
{
|
||||
public string? Tenant { get; set; }
|
||||
public string Email { get; set; } = default!;
|
||||
public string Password{ get; set; } = default!;
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Register;
|
||||
|
||||
public sealed record RegisterResponse(Guid UserId, string Name, string Email, string Tenant);
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.VerifyEmail;
|
||||
|
||||
public sealed class VerifyEmailRequest
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public string Email { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user