How academic-innovation/django-lti works
Main Components
a) External Systems Layer:
• LTI Platform (e.g., Learning Management System)
• Client Browser
b) Application Layer (Core):
• OIDC Authentication Flow Component
• JWKS (JSON Web Key Set) Management
• LTI Launch Handler
c) Django Framework Layer:
• Middleware Component (LtiLaunchMiddleware)
• Views Layer
• Models Layer
• Services Layer
d) Database Layer:
• PostgreSQL/MySQL (based on Django's ORM)
Component Relationships
• LTI Platform → OIDC Login Initiation
• OIDC Flow → LTI Launch Handler
• LTI Launch Handler → Middleware
• Middleware → Views
• Views → Models
• Models → Database
Key Architectural Elements
a) Authentication Flow:
• JWKS endpoint (.well-known/jwks.json)
• OIDC initialization endpoint
• Key rotation mechanism
b) Core LTI Components:
• Resource Launch Handler
• Deep Linking Launch Handler
• Submission Review Handler
• Data Privacy Handler
Important Details
Annotations for:
• Security mechanisms (JWT handling)
• Session management
• Database models (LtiContext, LtiMembership, LtiLineItem)
• Service integrations (NRPS service)
Specific Implementation Notes
Callouts for:
• Middleware position (after SessionMiddleware)
• Key rotation mechanism
• Launch message handling flow
• Session state management