mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-20 07:12:58 -05:00
27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
"""
|
|
LTI 1.3 URL Configuration for MediaCMS
|
|
"""
|
|
|
|
from django.urls import path
|
|
|
|
from . import deep_linking, views
|
|
|
|
app_name = 'lti'
|
|
|
|
urlpatterns = [
|
|
# LTI 1.3 Launch Flow
|
|
path('oidc/login/', views.OIDCLoginView.as_view(), name='oidc_login'),
|
|
path('launch/', views.LaunchView.as_view(), name='launch'),
|
|
path('jwks/', views.JWKSView.as_view(), name='jwks'),
|
|
path('public-key/', views.PublicKeyPEMView.as_view(), name='public_key_pem'),
|
|
# Deep Linking
|
|
path('select-media/', deep_linking.SelectMediaView.as_view(), name='select_media'),
|
|
# LTI-authenticated pages
|
|
path('my-media/', views.MyMediaLTIView.as_view(), name='my_media'),
|
|
path('embed/<str:friendly_token>/', views.EmbedMediaLTIView.as_view(), name='embed_media'),
|
|
# Manual sync
|
|
path('sync/<int:platform_id>/<str:context_id>/', views.ManualSyncView.as_view(), name='manual_sync'),
|
|
# TinyMCE integration (reuses select-media with mode=tinymce parameter)
|
|
path('tinymce-embed/<str:friendly_token>/', views.TinyMCEGetEmbedView.as_view(), name='tinymce_embed'),
|
|
]
|