Skip to content

Commit 38ad1da

Browse files
committed
Drop deprecated basic_auth and digest_auth
Also remove ``httpauth`` module Resolves #1688
1 parent 98f2cfb commit 38ad1da

4 files changed

Lines changed: 9 additions & 520 deletions

File tree

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
v15+dev
2+
-------
3+
4+
* :issue:`1688`: Removed ``basic_auth`` and ``digest_auth`` tools and
5+
the ``httpauth`` module, which have been officially deprecated earlier
6+
in v14.0.0.
7+
18
v15.0.0
29
-------
310

cherrypy/_cptools.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import cherrypy
2828
from cherrypy._helper import expose
2929

30-
from cherrypy.lib import cptools, encoding, auth, static, jsontools
30+
from cherrypy.lib import cptools, encoding, static, jsontools
3131
from cherrypy.lib import sessions as _sessions, xmlrpcutil as _xmlrpc
3232
from cherrypy.lib import caching as _caching
3333
from cherrypy.lib import auth_basic, auth_digest
@@ -494,8 +494,6 @@ def decorator(func):
494494
_d.expires = Tool('before_finalize', _caching.expires)
495495
_d.ignore_headers = Tool('before_request_body', cptools.ignore_headers)
496496
_d.referer = Tool('before_request_body', cptools.referer)
497-
_d.basic_auth = Tool('on_start_resource', auth.basic_auth)
498-
_d.digest_auth = Tool('on_start_resource', auth.digest_auth)
499497
_d.trailing_slash = Tool('before_handler', cptools.trailing_slash, priority=60)
500498
_d.flatten = Tool('before_finalize', cptools.flatten)
501499
_d.accept = Tool('on_start_resource', cptools.accept)
@@ -507,4 +505,4 @@ def decorator(func):
507505
_d.auth_digest = Tool('before_handler', auth_digest.digest_auth, priority=1)
508506
_d.params = Tool('before_handler', cptools.convert_params, priority=15)
509507

510-
del _d, cptools, encoding, auth, static
508+
del _d, cptools, encoding, static

cherrypy/lib/auth.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)