providers/saml: change default NameID Format to emailAddress

This commit is contained in:
Jens Langhammer
2020-02-20 17:37:09 +01:00
parent 84fc54ddaa
commit 027a64fad2
3 changed files with 4 additions and 20 deletions

View File

@ -242,11 +242,13 @@ class DescriptorDownloadView(AccessRequiredView):
pubkey = strip_pem_header(provider.signing_cert.replace("\r", "")).replace(
"\n", ""
)
subject_format = provider.processor.subject_format
ctx = {
"entity_id": entity_id,
"cert_public_key": pubkey,
"slo_url": slo_url,
"sso_url": sso_url,
"subject_format": subject_format,
}
return render_to_string("saml/xml/metadata.xml", ctx)