Changeset 4137 for TI12-security/trunk


Ignore:
Timestamp:
26/08/08 20:42:13 (11 years ago)
Author:
pjkersha
Message:

openid_provider: fixed for passing over large number of attributes. - OpenID switches to POST method if the number and length of query arguments make the URL exceed a maximum length. For this case, OpenIDProviderMiddleware._displayResponse() puts the form content created by the OpenID API in a page where submit is called by some Javascript from the OnLoad? event to redirect the browser back to the Relying Party.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/wsgi/openid_provider.py

    r4132 r4137  
    546546        hdr = webresponse.headers.items() 
    547547         
    548         lenWebResponseBody = len(webresponse.body) 
    549         if lenWebResponseBody: 
     548        if oidResponse.renderAsForm():#webresponse.body: 
    550549            # Wrap in HTML with JAvascript OnLoad to submit the form 
    551550            # automatically without user intervention 
     
    556555             
    557556        hdr += [('Content-type', 'text/html'+self.charset), 
    558                 ('Content-length', str(lenWebResponseBody))] 
     557                ('Content-length', str(len(response)))] 
    559558             
    560559        log.debug("webresponse.code = %d" % webresponse.code) 
Note: See TracChangeset for help on using the changeset viewer.