add deprecation warning for auth_token

Change-Id: I1faaae0373a7ae12ee528ab5c71741a2b1122d43
Closes-Bug: 1342274
This commit is contained in:
Dolph Mathews 2014-07-15 16:39:14 -05:00
parent 0a43edc138
commit 5c9b13d4c7
1 changed files with 4 additions and 0 deletions

View File

@ -458,6 +458,10 @@ class AuthProtocol(object):
def __init__(self, app, conf):
self.LOG = logging.getLogger(conf.get('log_name', __name__))
self.LOG.info('Starting keystone auth_token middleware')
self.LOG.warning(
'This middleware module is deprecated as of v0.10.0 in favor of '
'keystonemiddleware.auth_token - please update your WSGI pipeline '
'to reference the new middleware package.')
self.conf = conf
self.app = app