Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware: Check role #31

Open
14 tasks
my-opencode opened this issue Jul 11, 2024 · 0 comments
Open
14 tasks

Middleware: Check role #31

my-opencode opened this issue Jul 11, 2024 · 0 comments
Assignees
Labels
nice to have Additional features not required for MVP

Comments

@my-opencode
Copy link
Owner

secure routes by roles

  • back/controllers/login.ts
    • list user roles using model
    • set user roles in session cookie
    • return payload
  • back/controllers/login.test.ts
    • test user roles in cookie
  • back/middlewares/security-role.ts
    • check roles in session cookie vs mw init role
  • back/middlewares/security-role.test.ts
    • test mw
  • back/router.ts
    • POST /products
    • PATCH /products/{id}
    • DELETE /products/{id}
  • back/router.test.ts
    • test export updates
  • back/controllers/products-create.test.ts
    • update test with role cases
  • back/controllers/products-update.test.ts
    • update test with role cases
  • back/controllers/products-delete.test.ts
    • update test with role cases
  • back/server.test.ts
    • update test with role cases
@my-opencode my-opencode added the nice to have Additional features not required for MVP label Jul 11, 2024
@my-opencode my-opencode self-assigned this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nice to have Additional features not required for MVP
Projects
None yet
Development

No branches or pull requests

1 participant