fix: saml2无法登陆问题

pull/11426/head
jiangweidong 2023-08-24 14:00:32 +08:00 committed by Bryan
parent 29fdeef45f
commit bd88e0af68
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ class PrepareRequestMixin:
}, },
'singleLogoutService': { 'singleLogoutService': {
'url': f"{sp_host}{reverse('authentication:saml2:saml2-logout')}" '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) sp_settings['sp'].update(attrs)