From ed2cba2e2dad94af2257c7a68b8b06def1cf802d Mon Sep 17 00:00:00 2001 From: Omar Khan Date: Tue, 9 Feb 2016 15:53:42 +0700 Subject: [PATCH] Keep SAML configuration check --- common/djangoapps/third_party_auth/saml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/djangoapps/third_party_auth/saml.py b/common/djangoapps/third_party_auth/saml.py index 618ca7a800..8b23c21d6f 100644 --- a/common/djangoapps/third_party_auth/saml.py +++ b/common/djangoapps/third_party_auth/saml.py @@ -35,10 +35,11 @@ class SAMLAuthBackend(SAMLAuth): # pylint: disable=abstract-method parameter before getting the URL to which we must redirect in order to authenticate the user. - raise Http404 if SAML is disabled + raise Http404 if SAML authentication is disabled. raise AuthMissingParameter if the 'idp' parameter is missing. """ if not self._config.enabled: + log.error('SAML authentication is not enabled') raise Http404 # TODO: remove this check once the fix is merged upstream: # https://github.com/omab/python-social-auth/pull/821