Created
March 22, 2018 21:14
-
-
Save lbragstad/eab71ffc7c8c6c38cbd41bbb7930c82b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/keystone/identity/core.py b/keystone/identity/core.py | |
index d7d0bf4..36bffdc 100644 | |
--- a/keystone/identity/core.py | |
+++ b/keystone/identity/core.py | |
@@ -915,12 +915,16 @@ class Manager(manager.Manager): | |
@domains_configured | |
@exception_translated('assertion') | |
def authenticate(self, request, user_id, password): | |
+ LOG.info('authenticating user id: %r' % user_id) | |
domain_id, driver, entity_id = ( | |
self._get_domain_driver_and_entity_id(user_id)) | |
ref = driver.authenticate(entity_id, password) | |
+ LOG.info('user ref: %r' % ref) | |
ref = self._set_domain_id_and_mapping( | |
ref, domain_id, driver, mapping.EntityType.USER) | |
+ LOG.info('user ref: %r' % ref) | |
ref = self._shadow_nonlocal_user(ref) | |
+ LOG.info('shadow user ref: %r' % ref) | |
PROVIDERS.shadow_users_api.set_last_active_at(ref['id']) | |
return ref | |
@@ -1408,6 +1412,7 @@ class Manager(manager.Manager): | |
try: | |
return PROVIDERS.shadow_users_api.get_user(user['id']) | |
except exception.UserNotFound: | |
+ LOG.info('Could not find user: %r' % user['id']) | |
return PROVIDERS.shadow_users_api.create_nonlocal_user(user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment