thewickermilko / DatingApp-net8

0 stars 0 forks source link

Refactor the code to use ASP.NET Identity #89

Closed thewickermilko closed 1 month ago

thewickermilko commented 1 month ago
  1. Use .NET Identity
  2. Add Role management
  3. Add Policy based authorization
  4. Introduce "UserManager"
  5. Introduce "SingnInManager"
  6. Introduce "SingnInManager"
thewickermilko commented 1 month ago

092f506 - Created "AppRole", "AppUser", "AppUserRole" classes. "Seed" and "AccountController" classes - code updated.

thewickermilko commented 1 month ago

f2646d1 - Included "Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.8". "DataContext" class - code updated.

thewickermilko commented 1 month ago

c834b87 - "IdentityServiceExtensions" class - code updated.

thewickermilko commented 1 month ago

24d7b31

Code refactored and added new migration.

thewickermilko commented 1 month ago

5966d7b - "Seed" class - code updated. "Program.cs" - code updated.

thewickermilko commented 1 month ago

79ef060 - "AccountController", "Seed" classes - code updated.

thewickermilko commented 1 month ago

f3564ff - "Seed" class - code updated. "Program.cs" - code updated.

thewickermilko commented 1 month ago

7b98fe0 - "AccountController", "TokenService" classes - code updated. "ITokenService" interface - "CreateToken" method changed from "string" to "Task" type.

thewickermilko commented 1 month ago

d1d6cd1 - "AdminController" class created. "IdentityServiceExtensions" class - code updated.

thewickermilko commented 1 month ago

15b0e8a - "AdminController" class - "GetUsersWithRoles" method updated.

thewickermilko commented 1 month ago

0115b0f - "AdminController" class - "EditRoles" method created.

thewickermilko commented 1 month ago

c1e4adb - "admin-panel.component" created.

thewickermilko commented 1 month ago

51bec88 - "admin.guard.ts" created. "app.routes.ts", "account.service.ts" - code updated.

thewickermilko commented 1 month ago

efa1856 - "photo-management.component", "user-management.component" created. "user.ts" - "roles" property added. "admin-panel.component.html", "admin-panel.component.ts" - code updated.

thewickermilko commented 1 month ago

b975b69 - https://valor-software.com/ngx-bootstrap/#/components/modals?tab=overview - modals used. "roles-modal.component" created. "user-management.component.ts", "user-management.component.html" - code updated.

thewickermilko commented 1 month ago

10924c7 - Edit roles added. "admin.service.ts", "user-management.component.html", "user-management.component.ts", "roles-modal.component.html", "roles-modal.component.ts" - code updated.