mellon: define SLUG=idp (#57018)

It should help when changing domain name of a service.
This commit is contained in:
Benjamin Dauvergne 2021-09-16 17:44:47 +02:00
parent d84fd70def
commit e599e1c5f8
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class MellonAdapter(DefaultAdapter):
metadata_filepath = os.path.join(tenant_dir, 'idp-metadata-%s.xml' % service.get('id'))
if not os.path.exists(metadata_filepath):
continue
return [{'METADATA': metadata_filepath}]
return [{'METADATA': metadata_filepath, 'SLUG': 'idp'}]
return []
def provision_groups(self, user, idp, saml_attributes):

View File

@ -11,7 +11,7 @@ class MellonAdapter(DefaultAdapter):
self_idp = Authentic.objects.get(use_as_idp_for_self=True)
except Authentic.DoesNotExist:
return []
return [{'METADATA_URL': self_idp.get_saml_idp_metadata_url()}]
return [{'METADATA_URL': self_idp.get_saml_idp_metadata_url(), 'SLUG': 'idp'}]
class TemplateError(Exception):