How bl4kcy/muslim-room works
This is a FastAPI user-account service with password registration/login, Google OAuth login, and token-protected user identity support. The principal flow is HTTP routing into auth or user handlers, then service logic that creates or looks up users and issues or validates tokens using a database session. The graph preserves the API, auth, user, security, configuration, and persistence layers. The README is empty; relationships are based on the supplied source excerpts and SOURCE INDEX, so unsampled user-route behavior is kept at subsystem level.
Main entry points: users/service.py User Service · auth/service.py Auth Service · router.py Auth Endpoints · oauth.py OAuth Configuration
Components 18
HTTP API
- FastAPI Application
app/app.py - API Router
app/api/router.py - Version 1 Routes
app/api/v1/router.py - Auth Endpoints
app/modules/auth/router.py - User Endpoints
app/modules/users/router.py
Authentication
- Auth Service
app/modules/auth/service.py - Token Schemas
app/modules/auth/schema.py - OAuth Configuration
app/core/oauth.py
User Accounts
- User Service
app/modules/users/service.py - User Schemas
app/modules/users/schema.py - User Model
app/modules/users/model.py - User Types
app/modules/users/types.py
Security and Persistence
- Token and Password Security
app/core/security.py - Application Settings
app/core/config.py - Session Dependency
app/dependences.py - Database Session
app/db/database.py
Other components
- HTTP Client
- Google OAuth
Connections 27
- HTTP Client → FastAPI Application: sends requests
- FastAPI Application → API Router: mounts routes
app/app.py - FastAPI Application → Database Session: initializes tables
app/app.py - API Router → Version 1 Routes: includes routes
app/api/router.py - Version 1 Routes → Auth Endpoints: includes routes
app/api/v1/router.py - Version 1 Routes → User Endpoints: includes routes
app/api/v1/router.py - Auth Endpoints → Auth Service: delegates login
app/modules/auth/router.py - Auth Endpoints → User Service: delegates registration
app/modules/auth/router.py - Auth Endpoints → OAuth Configuration: starts redirect
app/modules/auth/router.py - Auth Service → OAuth Configuration: authorizes callback
app/modules/auth/service.py - OAuth Configuration → Google OAuth: registers provider
app/core/oauth.py - Auth Service → User Service: looks up or creates users
app/modules/auth/service.py - Auth Service → Token and Password Security: verifies and issues tokens
app/modules/auth/service.py - Auth Service → Token Schemas: returns token
app/modules/auth/service.py - User Endpoints → User Service: delegates operations
app/modules/users/router.py - User Service → Token and Password Security: hashes and validates
app/modules/users/service.py - User Service → User Model: queries and creates
app/modules/users/service.py - User Service → User Schemas: accepts and returns
app/modules/users/service.py - User Model → User Types: uses account types
app/modules/users/model.py - User Schemas → User Types: uses field types
app/modules/users/schema.py - Auth Service → Session Dependency: requests session
app/modules/auth/service.py - User Service → Session Dependency: requests session
app/modules/users/service.py - Session Dependency → Database Session: yields sessions
app/dependences.py - Token and Password Security → Application Settings: reads token settings
app/core/security.py - User Service → Application Settings: reads token settings
app/modules/users/service.py - OAuth Configuration → Application Settings: reads provider credentials
app/core/oauth.py - Database Session → Application Settings: reads database URL
app/db/database.py