Send feedback metadata to JaaS feedback endpoint

This commit is contained in:
hmuresan
2021-05-24 13:05:37 +03:00
committed by Horatiu Muresan
parent 01a127b557
commit aea09a8da3
5 changed files with 115 additions and 34 deletions

View File

@@ -134,7 +134,7 @@ function _setJWT(store, next, action) {
}
if (jwtPayload) {
const { context, iss } = jwtPayload;
const { context, iss, sub } = jwtPayload;
action.jwt = jwt;
action.issuer = iss;
@@ -144,7 +144,7 @@ function _setJWT(store, next, action) {
action.callee = context.callee;
action.group = context.group;
action.server = context.server;
action.tenant = context.tenant;
action.tenant = context.tenant || sub || undefined;
action.user = user;
user && _overwriteLocalParticipant(