You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goncalo-Marques
changed the title
Add middleware to handle JWT authentication
Add middleware to handle JWT authorization
Mar 26, 2024
Goncalo-Marques
changed the title
Add middleware to handle JWT authorization
Add middleware to handle JWT authentication and authorization
Mar 26, 2024
Refs: closes#46
## Summary
Add an authorization middleware for the employees and users based on
their role.
## Changes
- Add bearer auth scopes in the swagger spec
- Add forbidden error code in the swagger spec
- Add subject roles to JWT claims
- Add authorization middleware
- Add service method logging key
- Add store method to get employee by username
- Update employee domain structure
- Update sign in employee service method to create and return JWT
- Remove `public.` prefix from database migrations
- Remove redundant token validation after parsing the JWT
The middleware must:
The text was updated successfully, but these errors were encountered: