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