This commit is contained in:
Markos Gogoulos
2025-12-29 18:21:44 +02:00
parent b9899476b9
commit 06bc64b2c4
11 changed files with 249 additions and 104 deletions

View File

@@ -1,5 +1,7 @@
from django.apps import AppConfig
from .keys import ensure_keys_exist
class LtiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
@@ -7,6 +9,10 @@ class LtiConfig(AppConfig):
verbose_name = 'LTI 1.3 Integration'
def ready(self):
"""Import signal handlers when app is ready"""
# Import any signals here if needed in the future
pass
"""Initialize LTI app - ensure keys exist"""
# Ensure RSA key pair exists for signing Deep Linking responses
try:
ensure_keys_exist()
except Exception:
# Don't block startup if key generation fails
pass