source: iknow-api/iknow-api.csproj@ 5b42c8d

Last change on this file since 5b42c8d was 5b42c8d, checked in by stefansaveski <stefansaveski19@…>, 11 months ago

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.

  • Property mode set to 100644
File size: 859 bytes
RevLine 
[0b16523]1<Project Sdk="Microsoft.NET.Sdk.Web">
2
3 <PropertyGroup>
4 <TargetFramework>net9.0</TargetFramework>
5 <Nullable>enable</Nullable>
6 <ImplicitUsings>enable</ImplicitUsings>
7 <RootNamespace>iknow_api</RootNamespace>
8 </PropertyGroup>
9
10 <ItemGroup>
[5b42c8d]11 <PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
[0b16523]12 <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
[2859225]13 <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.10">
14 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
15 <PrivateAssets>all</PrivateAssets>
16 </PackageReference>
17 <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.4" />
[5b42c8d]18 <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.14.0" />
[0b16523]19 </ItemGroup>
20
21</Project>
Note: See TracBrowser for help on using the repository browser.