Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2268

Show
Ignore:
Timestamp:
05/11/09 12:20:22
Author:
visteya
Message:

Added improved Tools (and tests) for basic and digest authentication, as mentioned in tickets #913 and #914

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cptools.py

    r2262 r2268  
    236236from cherrypy.lib import sessions as _sessions, xmlrpc as _xmlrpc 
    237237from cherrypy.lib import caching as _caching, wsgiapp as _wsgiapp 
     238from cherrypy.lib import auth_basic, auth_digest 
    238239 
    239240 
     
    501502_d.json_in = Tool('before_handler', jsontools.json_in, priority=30) 
    502503_d.json_out = Tool('before_handler', jsontools.json_out, priority=30) 
     504_d.auth_basic = Tool('before_handler', auth_basic.basic_auth, priority=1) 
     505_d.auth_digest = Tool('before_handler', auth_digest.digest_auth, priority=1) 
    503506 
    504507del _d, cptools, encoding, auth, static, tidy 

Hosted by WebFaction

Log in as guest/cpguest to create tickets