diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-07-24 21:30:53 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-07-24 21:30:53 +0000 |
| commit | e58f7999f9011c7810b61483f8389713dfa7c72a (patch) | |
| tree | bb81caad0c57c96e7fe186eca9733e15af508895 /keystoneclient/auth/identity | |
| parent | 82e45a6f5cb3e63d60d369d9fe06cb29e0a699e3 (diff) | |
| parent | 0e9ecaa1547306f7af6527126fb88f8151908498 (diff) | |
| download | python-keystoneclient-0.10.1.tar.gz | |
Merge "Don't log sensitive auth data"0.10.1
Diffstat (limited to 'keystoneclient/auth/identity')
| -rw-r--r-- | keystoneclient/auth/identity/v2.py | 6 | ||||
| -rw-r--r-- | keystoneclient/auth/identity/v3.py | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/keystoneclient/auth/identity/v2.py b/keystoneclient/auth/identity/v2.py index 4342251..ad93dba 100644 --- a/keystoneclient/auth/identity/v2.py +++ b/keystoneclient/auth/identity/v2.py @@ -11,6 +11,7 @@ # under the License. import abc +import logging from oslo.config import cfg import six @@ -20,6 +21,8 @@ from keystoneclient.auth.identity import base from keystoneclient import exceptions from keystoneclient import utils +_logger = logging.getLogger(__name__) + @six.add_metaclass(abc.ABCMeta) class Auth(base.BaseIdentityPlugin): @@ -66,8 +69,9 @@ class Auth(base.BaseIdentityPlugin): if self.trust_id: params['auth']['trust_id'] = self.trust_id + _logger.debug('Making authentication request to %s', url) resp = session.post(url, json=params, headers=headers, - authenticated=False) + authenticated=False, log=False) try: resp_data = resp.json()['access'] diff --git a/keystoneclient/auth/identity/v3.py b/keystoneclient/auth/identity/v3.py index 63a0230..010c80d 100644 --- a/keystoneclient/auth/identity/v3.py +++ b/keystoneclient/auth/identity/v3.py @@ -105,8 +105,9 @@ class Auth(base.BaseIdentityPlugin): elif self.trust_id: body['auth']['scope'] = {'OS-TRUST:trust': {'id': self.trust_id}} + _logger.debug('Making authentication request to %s', self.token_url) resp = session.post(self.token_url, json=body, headers=headers, - authenticated=False) + authenticated=False, log=False) try: resp_data = resp.json()['token'] |
