|
Last change
on this file since 301af3f was fc7b4b4, 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:
324 bytes
|
| Line | |
|---|
| 1 | {
|
|---|
| 2 | "Logging": {
|
|---|
| 3 | "LogLevel": {
|
|---|
| 4 | "Default": "Information",
|
|---|
| 5 | "Microsoft.AspNetCore": "Warning"
|
|---|
| 6 | }
|
|---|
| 7 | },
|
|---|
| 8 | "ConnectionStrings": {
|
|---|
| 9 | "DefaultConnection": "Host=localhost;Port=55432;Database=myappdb;Username=postgres;Password=REDACTED_ROTATE_ME"
|
|---|
| 10 | },
|
|---|
| 11 | "Jwt": {
|
|---|
| 12 | "Key": "REDACTED_SET_VIA_USER_SECRETS"
|
|---|
| 13 | }
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.