Ignore:
Timestamp:
10/22/25 22:40:03 (11 months ago)
Author:
stefansaveski <stefansaveski19@…>
Branches:
master
Children:
301af3f
Parents:
aed1148
Message:

Implement JWT Authentication and Update User Schema

Replaced repository interface with FinXaccesApi.Repositories in UsersControllers.cs. Updated database schema to use PasswordHash instead of Password. Added new migration files reflecting these changes. Updated service registration in Program.cs to include IAuthService and IUserRepository. Refactored UserRepository.cs and IUserRepository.cs with new methods and namespace changes. Commented out UserService.cs. Updated appsettings with new connection strings and JWT settings. Added BCrypt.Net-Next and System.IdentityModel.Tokens.Jwt packages. Introduced AuthController, UserDTO, AuthService, and IAuthService for handling authentication and user management.

Location:
iknow-api/Migrations
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • iknow-api/Migrations/20251022202014_InitialCreate.Designer.cs

    raed1148 rfc7b4b4  
    1313{
    1414    [DbContext(typeof(AppDbContext))]
    15     [Migration("20251021141534_InitialCreate")]
     15    [Migration("20251022202014_InitialCreate")]
    1616    partial class InitialCreate
    1717    {
     
    4949                        .HasColumnType("text");
    5050
    51                     b.Property<string>("Password")
     51                    b.Property<string>("PasswordHash")
    5252                        .HasColumnType("text");
    5353
  • iknow-api/Migrations/20251022202014_InitialCreate.cs

    raed1148 rfc7b4b4  
    2323                    Index = table.Column<string>(type: "text", nullable: true),
    2424                    Email = table.Column<string>(type: "text", nullable: true),
    25                     Password = table.Column<string>(type: "text", nullable: true),
     25                    PasswordHash = table.Column<string>(type: "text", nullable: true),
    2626                    Bday = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
    2727                    CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
  • iknow-api/Migrations/AppDbContextModelSnapshot.cs

    raed1148 rfc7b4b4  
    4646                        .HasColumnType("text");
    4747
    48                     b.Property<string>("Password")
     48                    b.Property<string>("PasswordHash")
    4949                        .HasColumnType("text");
    5050
Note: See TracChangeset for help on using the changeset viewer.