Attachment 'patch-moinmoinsaml-SAMLMetadata.py.diff'
Download 1 --- SAMLMetadata.py 2013-01-11 18:11:29.508377010 +0100
2 +++ SAMLMetadata.py 2013-01-11 18:12:31.392382643 +0100
3 @@ -18,7 +18,7 @@
4 from MoinMoin.auth.saml import get_saml_sp_conf
5
6 from saml2.metadata import entity_descriptor
7 -
8 +from MoinSupport import get_send_headers
9
10 def execute(pagename, request):
11 conf = get_saml_sp_conf(request.cfg.saml_config)
12 @@ -29,5 +29,7 @@
13 valid_for = 24
14
15 metadata = entity_descriptor(conf, valid_for)
16 - request.content_type = 'text/xml'
17 +
18 + get_send_headers(request)(["Content-Type: text/xml"])
19 + #request.content_type = 'text/xml'
20 request.write(str(metadata))
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.