summaryrefslogtreecommitdiffstats
path: root/takahe/urls.py
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-12-18 17:30:04 +0100
committerGeorg Pfuetzenreuter2022-12-18 17:30:04 +0100
commitbdc1f1d2b55fe026bebd13905eaaea54d691cb35 (patch)
treef8aa9f9d9fcde1c409dd8cb6889648b2759eee9a /takahe/urls.py
parent86bc48f3e0b57bd63673324c1177e93da806de7a (diff)
parent9af6b1d051e960bf66398bc226c8e2fec4d55880 (diff)
downloadtakahe-bdc1f1d2b55fe026bebd13905eaaea54d691cb35.tar.gz
takahe-bdc1f1d2b55fe026bebd13905eaaea54d691cb35.tar.bz2
takahe-bdc1f1d2b55fe026bebd13905eaaea54d691cb35.zip
Merge pull request 'Import urls.py and settings.py' (#1) from libertacasa-saml into libertacasa-master
Reviewed-on: https://git.com.de/LibertaCasa/takahe/pulls/1
Diffstat (limited to 'takahe/urls.py')
-rw-r--r--takahe/urls.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/takahe/urls.py b/takahe/urls.py
index d3572a9..ea205c5 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -9,6 +9,9 @@ from mediaproxy import views as mediaproxy
from stator import views as stator
from users.views import activitypub, admin, auth, identity, report, settings
+from django.conf.urls import include
+from django.views.generic.base import RedirectView
+
urlpatterns = [
path("", core.homepage),
path("manifest.json", core.AppManifest.as_view()),
@@ -174,7 +177,7 @@ urlpatterns = [
path("@<handle>/posts/<int:post_id>/report/", report.SubmitReport.as_view()),
path("@<handle>/posts/<int:post_id>/edit/", compose.Compose.as_view()),
# Authentication
- path("auth/login/", auth.Login.as_view(), name="login"),
+ path("auth/login/", RedirectView.as_view(url='/saml2/login', permanent=False), name='login'),
path("auth/logout/", auth.Logout.as_view(), name="logout"),
path("auth/signup/", auth.Signup.as_view(), name="signup"),
path("auth/reset/", auth.TriggerReset.as_view(), name="trigger_reset"),
@@ -248,4 +251,5 @@ urlpatterns = [
core.custom_static_serve,
kwargs={"document_root": djsettings.MEDIA_ROOT},
),
+ path('saml2/', include('djangosaml2.urls')),
]