Skip to content

Commit 14e7d95

Browse files
committed
Merge branch 'class-based-views' of https://github.com/mhindery/djangosaml2 into v1.0.0
2 parents 7df388a + 12f3741 commit 14e7d95

File tree

2 files changed

+193
-173
lines changed

2 files changed

+193
-173
lines changed

djangosaml2/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
from . import views
1919

2020
urlpatterns = [
21-
path('login/', views.login, name='saml2_login'),
21+
path('login/', views.LoginView.as_view(), name='saml2_login'),
2222
path('acs/', views.AssertionConsumerServiceView.as_view(), name='saml2_acs'),
2323
path('logout/', views.logout, name='saml2_logout'),
2424
path('ls/', views.logout_service, name='saml2_ls'),
2525
path('ls/post/', views.logout_service_post, name='saml2_ls_post'),
26-
path('metadata/', views.metadata, name='saml2_metadata'),
26+
path('metadata/', views.MetadataView.as_view(), name='saml2_metadata'),
2727
]

0 commit comments

Comments
 (0)