Skip to content

Commit

Permalink
fix userName when token is from Trust
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 4, 2024
1 parent e3d3ab0 commit 632cfb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/services/keystoneAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 632cfb9

Please sign in to comment.