Skip to content

Commit

Permalink
feat: [PMA-98] add urls for Saml authentefication through mobile (#2592)
Browse files Browse the repository at this point in the history
* feat: [PMA-98] add urls for Saml athentefication through mobile

* feat: [PMA-98] make some changes after code review
  • Loading branch information
DmytroNefyodov authored Feb 5, 2025
1 parent 1e519ce commit 36d4152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/djangoapps/third_party_auth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
re_path(r'^auth/saml/metadata.xml', saml_metadata_view),
re_path(r'^auth/login/(?P<backend>lti)/$', lti_login_and_complete_view),
path('auth/idp_redirect/<slug:provider_slug>', IdPRedirectView.as_view(), name="idp_redirect"),
path('auth/', include('social_django.urls', namespace='social')),
path('auth/saml/v0/', include('common.djangoapps.third_party_auth.samlproviderconfig.urls')),
path('auth/saml/v0/', include('common.djangoapps.third_party_auth.samlproviderdata.urls')),
path('auth/saml/v0/', include('common.djangoapps.third_party_auth.saml_configuration.urls')),
]

urlpatterns += [
path('', include('mobile_api_extensions.auth_urls')),
]
4 changes: 4 additions & 0 deletions openedx/core/djangoapps/oauth_dispatch/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from django.urls import path, re_path
from django.views.decorators.csrf import csrf_exempt

from mobile_api_extensions.auth_urls import append_mobile_urls

from . import views

urlpatterns = [
Expand All @@ -21,3 +23,5 @@
name='exchange_access_token',
),
]

urlpatterns = append_mobile_urls(urlpatterns)

0 comments on commit 36d4152

Please sign in to comment.