saml: Add SOCIAL_AUTH_SAML_SECURITY_CONFIG to default_settings.

SOCIAL_AUTH_SAML_SECURITY_CONFIG["authnRequestsSigned"] override in
settings.py in a previous commit wouldn't work on servers old enough to
not have the SAML settings in their settings.py - due to
SOCIAL_AUTH_SAML_SECURITY_CONFIG being undefined.
This commit fixes that.
This commit is contained in:
Mateusz Mandera 2020-02-21 07:01:29 +01:00 committed by showell
parent a05f633fc1
commit 9c99962dea
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
from typing import Dict, List, Optional, TYPE_CHECKING
from typing import Any, Dict, List, Optional, TYPE_CHECKING
if TYPE_CHECKING:
from django_auth_ldap.config import LDAPSearch
@ -62,6 +62,7 @@ SOCIAL_AUTH_SAML_ORG_INFO = None # type: Optional[Dict[str, Dict[str, str]]]
SOCIAL_AUTH_SAML_TECHNICAL_CONTACT = None # type: Optional[Dict[str, str]]
SOCIAL_AUTH_SAML_SUPPORT_CONTACT = None # type: Optional[Dict[str, str]]
SOCIAL_AUTH_SAML_ENABLED_IDPS = {} # type: Dict[str, Dict[str, str]]
SOCIAL_AUTH_SAML_SECURITY_CONFIG = {} # type: Dict[str, Any]
# Historical name for SOCIAL_AUTH_GITHUB_KEY; still allowed in production.
GOOGLE_OAUTH2_CLIENT_ID = None # type: Optional[str]