diff --git a/lib/services/keystoneAuth.js b/lib/services/keystoneAuth.js index 4ffacee..a47aa6b 100644 --- a/lib/services/keystoneAuth.js +++ b/lib/services/keystoneAuth.js @@ -249,7 +249,9 @@ function retrieveUser(req, callback) { userId: body.token['OS-TRUST:trust'].trustor_user.id, userName: constants.NA }; - + if (body.token.user) { + cachedValue['userName'] = body.token.user.name; + } innerCb(null, cachedValue); } else if (body.token && body.token.user && body.token.user.domain &&