backend-service/internal/repositories
ats-tech25 8309f38999 feat(auth): Implement comprehensive authentication and authorization middleware
- Add JWT authentication middleware with token validation
- Implement user context extraction methods for user ID, email, and admin status
- Create admin middleware to restrict access to admin-only routes
- Add convenience method to combine authentication and admin authorization
- Update auth middleware to handle token parsing, validation, and context setting
- Enhance error handling for various authentication scenarios
- Add new JWT service and related dependencies in go.mod
2025-11-05 15:21:56 +00:00
..
booking_repository.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00
interfaces.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00
notification_repository.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00
repository.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00
schedule_repository.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00
user_repository.go feat(auth): Implement comprehensive authentication and authorization middleware 2025-11-05 15:21:56 +00:00