Add JWT authentication.

Add: JWT authentication in Web API. Related configuration and services are added.
This commit is contained in:
2025-07-10 20:08:48 +08:00
parent 7cce413f79
commit 724b1d4dae
8 changed files with 132 additions and 4 deletions

View File

@ -0,0 +1,12 @@
namespace OptixServe.Api.Dtos;
public record LoginRequestDto
{
public string? UserName { get; set; }
public string? Password { get; set; }
}
public record LoginResponseDto
{
public string? Token { get; set; }
}