mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
fix for issue 4696(tower) , Upstream commit for tower PR 4840
This commit is contained in:
parent
2ef08b1d13
commit
29520f1ca6
@ -58,12 +58,12 @@ class MetadataView(View):
|
||||
def get(self, request, *args, **kwargs):
|
||||
from social_django.utils import load_backend, load_strategy
|
||||
complete_url = reverse('social:complete', args=('saml', ))
|
||||
saml_backend = load_backend(
|
||||
load_strategy(request),
|
||||
'saml',
|
||||
redirect_uri=complete_url,
|
||||
)
|
||||
try:
|
||||
saml_backend = load_backend(
|
||||
load_strategy(request),
|
||||
'saml',
|
||||
redirect_uri=complete_url,
|
||||
)
|
||||
metadata, errors = saml_backend.generate_metadata_xml()
|
||||
except Exception as e:
|
||||
logger.exception('unable to generate SAML metadata')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user