3 Commits

Author SHA1 Message Date
e3fe20005b feat(auth): implement admin management with RootUID enforcement and SetAdmin handler 2025-12-17 22:08:45 +09:00
889f072390 feat(auth): add RequireAdmin middleware to enforce admin access control 2025-12-11 23:16:30 +09:00
8a549504a4 feat(auth): implement Firebase authentication and token verification
- Added FirebaseAuth struct and TokenVerifier interface for verifying Firebase ID tokens.
- Introduced FirebaseConfig struct in config to manage Firebase credentials and project ID.
- Implemented OAuth handler for Firebase ID token verification in HTTP handlers.
- Added middleware for authenticating requests using Firebase tokens.
- Updated router to conditionally apply authentication based on configuration.
- Created tests for the new authentication middleware.
- Added request and response types for Firebase OAuth handling.
- Included a sample JSON file for testing purposes.
2025-12-10 19:05:11 +09:00