Skip to content

Commit

Permalink
Fix userName missing issue that occurs when ELK based Analytics is co…
Browse files Browse the repository at this point in the history
…nfigured for a Public API

Fixes : wso2/api-manager#2200
  • Loading branch information
RusJaI committed Oct 9, 2023
1 parent 56c3a1e commit 389815e
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 389815e

Please sign in to comment.