mellon: define SLUG=idp (#57018)
It should help when changing domain name of a service.
This commit is contained in:
parent
d84fd70def
commit
e599e1c5f8
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue