From 4295ab3e4a78357b7c11e9c1a194bff79425aec6 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Tue, 6 Dec 2016 12:55:51 -0500 Subject: [PATCH] Show SAML errors that aren't tied to a specific IdP. --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index e1009e6bfb..734d1159b6 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -534,7 +534,7 @@ class AuthView(APIView): saml_backend_data = dict(backend_data.items()) saml_backend_data['login_url'] = '%s?idp=%s' % (login_url, idp) full_backend_name = '%s:%s' % (name, idp) - if err_backend == full_backend_name and err_message: + if (err_backend == full_backend_name or err_backend == name) and err_message: saml_backend_data['error'] = err_message data[full_backend_name] = saml_backend_data else: