How sanket4511/enterpriseiq-agentic-platform works
EnterpriseIQ is currently a FastAPI foundation for tenant-scoped identity, user management, and role-based authorization; the README marks RAG, agent orchestration, MCP, and GCP deployment as not yet implemented. The main workflow is login to issue a JWT, then token validation and permission checks for protected user operations. Source excerpts establish these request paths and database use. Other documented AI capabilities are development goals, not runnable subsystems, so they are not represented as components.
Main entry points: main.py FastAPI app · dependencies.py Token and permission checks · users.py User route · authentication.py Authentication
Components 19
API entry points
- FastAPI app
app/main.py - Login route
app/api/v1/auth.py - User route
app/api/v1/users.py - Protected routes
app/api/v1/protected.py
Identity and access
- Authentication
app/services/authentication.py - Token and permission checks
app/api/dependencies.py - Permission evaluation
app/services/authorization.py - JWT security
app/core/security.py - Password verification
app/core/password.py
Tenant and user domain
- User management
app/services/user_management.py - Request and response schemas
app/schemas - Tenant records
app/models/tenant.py - User records
app/models/user.py - Role records
app/models/role.py - User-role assignments
app/models/user_role.py
Runtime infrastructure
- Database sessions
app/db/session.py - Redis client
app/db/redis.py - Runtime settings
app/core/config.py
Other components
- API client
Connections 33
- API client → FastAPI app: sends requests
app/main.py - FastAPI app → Login route: registers route
app/main.py - FastAPI app → User route: registers route
app/main.py - FastAPI app → Protected routes: registers route
app/main.py - FastAPI app → Database sessions: checks connection
app/main.py - FastAPI app → Redis client: pings client
app/main.py - FastAPI app → Runtime settings: reads settings
app/main.py - Login route → Authentication: authenticates credentials
app/api/v1/auth.py - Login route → Database sessions: gets session
app/api/v1/auth.py - Login route → Request and response schemas: validates and responds
app/api/v1/auth.py - Authentication → User records: queries user
app/services/authentication.py - Authentication → Tenant records: checks tenant
app/services/authentication.py - Authentication → Password verification: verifies password
app/services/authentication.py - Authentication → JWT security: creates token
app/services/authentication.py - User route → Token and permission checks: requires permission
app/api/v1/users.py - User route → User management: creates user
app/api/v1/users.py - User route → Database sessions: gets session
app/api/v1/users.py - User route → Request and response schemas: validates and responds
app/api/v1/users.py - Token and permission checks → JWT security: decodes token
app/api/dependencies.py - Token and permission checks → Database sessions: queries identity
app/api/dependencies.py - Token and permission checks → User records: checks active user
app/api/dependencies.py - Token and permission checks → Tenant records: checks active tenant
app/api/dependencies.py - Token and permission checks → Permission evaluation: checks permission
app/api/dependencies.py - Permission evaluation → User records: verifies membership
app/services/authorization.py - Permission evaluation → Tenant records: checks tenant status
app/services/authorization.py - Permission evaluation → Role records: reads permissions
app/services/authorization.py - Permission evaluation → User-role assignments: reads assignments
app/services/authorization.py - User management → User records: creates account
app/services/user_management.py - User management → Tenant records: checks organization
app/services/user_management.py - User management → Password verification: hashes password
app/services/user_management.py - Database sessions → Runtime settings: reads database URL
app/db/session.py - Redis client → Runtime settings: reads Redis URL
app/db/redis.py - JWT security → Runtime settings: reads JWT settings
app/core/security.py