Globalize authentication failure error

The authentication failure error during token
validation is currently not globalized. This
patch provides a fix for that.

Change-Id: If5ccdbfd2fc215e3d0013d45c8908344db20789e
Closes-Bug: 1614994
This commit is contained in:
ubuntu 2016-08-24 04:05:45 -04:00
parent 5a6296cd4e
commit c43c8e4b7d
1 changed files with 2 additions and 1 deletions

View File

@ -570,7 +570,8 @@ class AuthProtocol(BaseAuthProtocol):
self.log.info(_LI('Deferring reject downstream'))
else:
self.log.info(_LI('Rejecting request'))
message = 'The request you have made requires authentication.'
message = _('The request you have made requires '
'authentication.')
body = {'error': {
'code': 401,
'title': 'Unauthorized',