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.
  • [get | view] (2013-03-26 14:16:49, 0.6 KB) [[attachment:patch-moinmoinsaml-SAMLMetadata.py.diff]]
  • [get | view] (2013-03-26 14:16:29, 5.0 KB) [[attachment:patch-moinmoinsaml-saml.py.diff]]
  • [get | view] (2013-03-26 14:17:04, 0.3 KB) [[attachment:patch-moinmoinsaml-setup.py.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.