Skip to content

Commit

Permalink
Merge pull request #12170 from RusJaI/master
Browse files Browse the repository at this point in the history
Fix userName missing issue that occurs when ELK based Analytics is configured for a Public API
  • Loading branch information
RusJaI authored Oct 12, 2023
2 parents 56c3a1e + 389815e commit 0118fb0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ public String getUserName() {
if (messageContext.getPropertyKeySet().contains(APIMgtGatewayConstants.END_USER_NAME)) {
return (String) messageContext.getProperty(APIMgtGatewayConstants.END_USER_NAME);
}
if (messageContext.getPropertyKeySet().contains(APIMgtGatewayConstants.USER_ID)) {
return (String) messageContext.getProperty(APIMgtGatewayConstants.USER_ID);
}
return null;
}

Expand Down

0 comments on commit 0118fb0

Please sign in to comment.