|
|
@@ -322,7 +322,7 @@ class LoginAndPermissionMiddleware(object):
|
|
|
|
|
|
logging.info("Redirecting to login page: %s", request.get_full_path())
|
|
|
access_log(request, 'login redirection', level=access_log_level)
|
|
|
- if request.ajax:
|
|
|
+ if request.ajax and not 'libsaml.backend.SAML2Backend' in desktop.conf.AUTH.BACKEND.get():
|
|
|
# Send back a magic header which causes Hue.Request to interpose itself
|
|
|
# in the ajax request and make the user login before resubmitting the
|
|
|
# request.
|