-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Discourse SSO to use custom PrivateMixin
This is required to retain correct redirect behavior when login is required.
- Loading branch information
Showing
2 changed files
with
77 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from django.conf.urls import url | ||
from django.urls import re_path | ||
|
||
from .views import single_sign_on | ||
from .views import SingleSignOn | ||
|
||
urlpatterns = [url(r"^sso/$", single_sign_on)] | ||
urlpatterns = [re_path(r"^sso/$", SingleSignOn.as_view())] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters