From 642f92c0a37df0178b345e340078c5819e9dd785 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Thu, 24 Aug 2023 13:58:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20saml2=E6=97=A0=E6=B3=95=E7=99=BB?= =?UTF-8?q?=E9=99=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/saml2/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/authentication/backends/saml2/views.py b/apps/authentication/backends/saml2/views.py index e0fa97590..235dd2c38 100644 --- a/apps/authentication/backends/saml2/views.py +++ b/apps/authentication/backends/saml2/views.py @@ -146,7 +146,9 @@ class PrepareRequestMixin: }, 'singleLogoutService': { 'url': f"{sp_host}{reverse('authentication:saml2:saml2-logout')}" - } + }, + 'privateKey': getattr(settings, 'SAML2_SP_KEY_CONTENT', ''), + 'x509cert': getattr(settings, 'SAML2_SP_CERT_CONTENT', ''), } } sp_settings['sp'].update(attrs)