Commit Graph

11 Commits

Author SHA1 Message Date
JSC
51423779a8 feat: Implement OAuth2 authentication with Google and GitHub
- Added OAuth2 endpoints for Google and GitHub authentication.
- Created OAuth service to handle provider interactions and user info retrieval.
- Implemented user OAuth repository for managing user OAuth links in the database.
- Updated auth service to support linking existing users and creating new users via OAuth.
- Added CORS middleware to allow frontend access.
- Created tests for OAuth endpoints and service functionality.
- Introduced environment configuration for OAuth client IDs and secrets.
- Added logging for OAuth operations and error handling.
2025-07-26 14:38:13 +02:00
JSC
45ba28af52 Refactor auth service to improve refresh token revocation handling and logging 2025-07-25 18:23:19 +02:00
JSC
e456d34897 Add tests for authentication and utilities, and update dependencies
- Created a new test package for services and added tests for AuthService.
- Implemented tests for user registration, login, and token creation.
- Added a new test package for utilities and included tests for password and JWT utilities.
- Updated `uv.lock` to include new dependencies: bcrypt, email-validator, pyjwt, and pytest-asyncio.
2025-07-25 17:48:43 +02:00
JSC
af20bc8724 Add database seeding functionality and enhance model relationships
- Implement initial data seeding for plans in the database.
- Create a new `seed_all_data` function to manage seeding process.
- Update `Sound` and `User` models to include relationships for `SoundPlayed` and `Stream`.
2025-07-25 11:44:47 +02:00
JSC
4a77a23ee5 Fix formatting by adding a newline at the end of the API router initialization file 2025-07-25 11:25:15 +02:00
JSC
c219aaac1a Add API routing for v1 endpoints and health check functionality 2025-07-25 11:24:03 +02:00
JSC
c5c3e8442e Refactor error logging in database functions for consistency and clarity 2025-07-25 11:09:50 +02:00
JSC
d8aaedf851 Refactor LoggingMiddleware constructor to use ASGIApp type hint and remove unused parameters 2025-07-25 10:59:14 +02:00
JSC
b6d1ef2a27 Add logging configuration and middleware for improved request tracking 2025-07-25 10:54:30 +02:00
JSC
2860008a6d Remove unnecessary blank lines in model files for cleaner code structure 2025-07-22 16:18:41 +02:00
JSC
fefb7f7bf4 Refactor code structure for improved readability and maintainability 2025-07-22 13:21:44 +02:00