Skip to content

Commit

Permalink
Merge pull request #5688 from ccnmtl/django-lti
Browse files Browse the repository at this point in the history
Introduce django-lti - INFRA-2583
  • Loading branch information
nikolas authored Jan 22, 2025
2 parents b93a410 + 96d1123 commit 29ad745
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lti_auth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from lti_auth.views import LTIConfigView, LTILandingPage, LTIRoutingView, \
LTICourseEnableView
from lti_tool.views import jwks, OIDCLoginInitView


urlpatterns = [
Expand All @@ -10,4 +11,9 @@
path('landing/<slug:context>/',
LTILandingPage.as_view(), {}, 'lti-landing-page'),
path('', LTIRoutingView.as_view(), {}, 'lti-login'),

# django-lti
path('.well-known/jwks.json', jwks, name='jwks'),
path('init/<uuid:registration_uuid>/',
OIDCLoginInitView.as_view(), name='oidc_init'),
]
2 changes: 2 additions & 0 deletions mediathread/settings_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
'corsheaders.middleware.CorsMiddleware',
'mediathread.main.middleware.MethCourseManagerMiddleware',
'django_user_agents.middleware.UserAgentMiddleware',
'lti_tool.middleware.LtiLaunchMiddleware',
]

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
Expand Down Expand Up @@ -95,6 +96,7 @@
'corsheaders',
'reversion',
'lti_auth',
'lti_tool',
'bootstrap3',
'bootstrap4',
'django_extensions',
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ oauth==1.0.1
oauth2==1.9.0.post1
oauthlib==3.2.2
pylti==0.7.0

pyjwt==2.10.1 # pylti1p3
jwcrypto==1.5.6 # pylti1p3
PyLTI1p3==2.0.0 # django-lti
django-lti==0.7.0

nameparser==1.1.0
django-bootstrap3==24.3
django-bootstrap4==24.4
Expand Down

0 comments on commit 29ad745

Please sign in to comment.