first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// using MyNewProjectName.Domain.Entities;
|
||||
// using System.Security.Claims;
|
||||
|
||||
// namespace MyNewProjectName.Application.Interfaces.Common;
|
||||
|
||||
// public interface IJwtTokenGenerator
|
||||
// {
|
||||
// string GenerateAccessToken(User user, List<string> roles, Guid tenantId);
|
||||
|
||||
// string GenerateRefreshToken();
|
||||
|
||||
// ClaimsPrincipal GetPrincipalFromExpiredToken(string token);
|
||||
// }
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace MyNewProjectName.Application.Interfaces.Common;
|
||||
|
||||
public interface IPasswordHasher
|
||||
{
|
||||
string Hash(string password);
|
||||
bool Verify(string password, string hashedPassword);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace MyNewProjectName.Application.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for getting current user information
|
||||
/// </summary>
|
||||
public interface ICurrentUserService
|
||||
{
|
||||
string? UserId { get; }
|
||||
string? UserName { get; }
|
||||
bool? IsAuthenticated { get; }
|
||||
string? Role { get; }
|
||||
}
|
||||
10
MyNewProjectName.Application/Interfaces/IDateTimeService.cs
Normal file
10
MyNewProjectName.Application/Interfaces/IDateTimeService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MyNewProjectName.Application.Interfaces;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for date time operations (for testability)
|
||||
/// </summary>
|
||||
public interface IDateTimeService
|
||||
{
|
||||
DateTime Now { get; }
|
||||
DateTime UtcNow { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user