From 01498add9bf66d0d582a88dd69a4b8793ee72af4 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Tue, 23 May 2023 14:48:20 +0200 Subject: [PATCH] auth: Rename authentication_method session var. --- zproject/backends.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zproject/backends.py b/zproject/backends.py index fcf6ed113c..07f808d65d 100644 --- a/zproject/backends.py +++ b/zproject/backends.py @@ -1888,7 +1888,7 @@ class SocialAuthMixin(ZulipAuthMixin, ExternalAuthMethod, BaseAuth): Specifies a dict of keys:values to be saved in the user's session after successfully authenticating. """ - return {"authentication_method": self.name} + return {"social_auth_backend": self.name} @classmethod def dict_representation(cls, realm: Optional[Realm] = None) -> List[ExternalAuthMethodDictT]: @@ -2719,7 +2719,7 @@ class SAMLAuthBackend(SocialAuthMixin, SAMLAuth): def get_params_to_store_in_authenticated_session(self) -> Dict[str, str]: idp_name = self.strategy.session_get("saml_idp_name") - return {"authentication_method": f"saml:{idp_name}"} + return {"social_auth_backend": f"saml:{idp_name}"} def patch_saml_auth_require_messages_signed(auth: OneLogin_Saml2_Auth) -> None: