Browse Source

HUE-7419 [core] Update SAML libraries
Fix undefined failure_function for handling SAML response parsing exception

Ying Chen 8 years ago
parent
commit
628a6b6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/core/ext-py/djangosaml2-0.16.4/djangosaml2/utils.py

+ 2 - 1
desktop/core/ext-py/djangosaml2-0.16.4/djangosaml2/utils.py

@@ -15,7 +15,7 @@
 from django.conf import settings
 from django.core.exceptions import ImproperlyConfigured
 # from django.utils.module_loading import import_string
-from djangosaml2.acs_failures import exception_failure
+# from djangosaml2.acs_failures import exception_failure
 from saml2.s_utils import UnknownSystemEntity
 
 
@@ -81,4 +81,5 @@ def fail_acs_response(request, *args, **kwargs):
     # failure_function = import_string(get_custom_setting('SAML_ACS_FAILURE_RESPONSE_FUNCTION',
     #                                                    'djangosaml2.acs_failures.template_failure'))
     from djangosaml2.acs_failures import exception_failure
+    failure_function = exception_failure
     return failure_function(request, *args, **kwargs)