Update accounting to take only the first scope for jwt token

This commit is contained in:
Antonio Calanducci 2024-05-22 10:22:41 +02:00
parent 3c3bcdf838
commit 1c033b0443
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ function buildAccountingRecord(context) {
"serviceName": defaultExport["accounting"]["service_name"],
"duration": 0,
"maxInvocationTime": 0,
"scope": defaultExport["accounting"]["scopes"], // qui va cambiato per capire quale è lo scope corretto dell'utente
"scope": defaultExport["accounting"]["scopes"][0], // qui va cambiato per capire quale è lo scope corretto dell'utente, al momento viene preso il primo
"host": defaultExport["accounting"]["host"],
"startTime": t,
"id": uuid(),