Merge branch 'main' into feature-worker

# Conflicts:
#	dotnet/AipsWebApi/Controllers/UserController.cs
This commit is contained in:
2026-02-15 16:23:04 +01:00
34 changed files with 940 additions and 30 deletions

View File

@@ -0,0 +1,3 @@
namespace AipsCore.Application.Common.Authentication.Dtos;
public record LogInUserResultDto(string AccessToken, string RefreshToken);

View File

@@ -1,3 +1,4 @@
using AipsCore.Application.Common.Authentication.Models;
using AipsCore.Domain.Models.User;
namespace AipsCore.Application.Common.Authentication;
@@ -6,4 +7,5 @@ public interface IAuthService
{
Task SignUpWithPasswordAsync(User user, string password, CancellationToken cancellationToken = default);
Task<LoginResult> LoginWithEmailAndPasswordAsync(string email, string password, CancellationToken cancellationToken = default);
Task<LoginResult> LoginWithRefreshTokenAsync(RefreshToken refreshToken, CancellationToken cancellationToken = default);
}

View File

@@ -0,0 +1,3 @@
namespace AipsCore.Application.Common.Authentication.Models;
public record AccessToken(string Value);

View File

@@ -0,0 +1,5 @@
using AipsCore.Domain.Models.User.ValueObjects;
namespace AipsCore.Application.Common.Authentication.Models;
public record RefreshToken(string Value, string UserId, DateTime ExpiresAt);

View File

@@ -1,3 +0,0 @@
namespace AipsCore.Application.Common.Authentication;
public record Token(string Value);