From b4a3aa4e63b6d799358582f24d6805045337a3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 15 Jun 2026 11:06:22 +0400 Subject: [PATCH] =?UTF-8?q?v0.6.14:=20=D1=80=D0=B0=D1=81=D1=88=D0=B8=D1=80?= =?UTF-8?q?=D0=B5=D0=BD=D0=BD=D0=B0=D1=8F=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4?= =?UTF-8?q?=D0=BA=D0=B0=20req.clientId=20(=D1=82=D0=B8=D0=BF,=20=D0=B4?= =?UTF-8?q?=D0=BB=D0=B8=D0=BD=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/config/index.js | 2 +- v2/src/router/index.js | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index deb26f7..0c43201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.6.13", + "version": "0.6.14", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/config/index.js b/v2/src/config/index.js index add84d0..3faf590 100644 --- a/v2/src/config/index.js +++ b/v2/src/config/index.js @@ -9,7 +9,7 @@ // ═══════════════════════════════════════════════════════════════════════════════ module.exports = { - version: '0.6.13', + version: '0.6.14', // ── IAM ────────────────────────────────────────────────────────────────── iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user', diff --git a/v2/src/router/index.js b/v2/src/router/index.js index 37203e4..7f39848 100644 --- a/v2/src/router/index.js +++ b/v2/src/router/index.js @@ -57,9 +57,12 @@ function resolveContext(req, res, next) { req.clientId = isImpersonated ? impersonatedCompanyId : (activeClientId || clientId); if (!req.clientId) return res.status(400).send( '

Ошибка

Не удалось определить W-номер компании.

' + - '

email: ' + email + '

' + - '

clientId: ' + clientId + '

' + - '

activeClientId: ' + activeClientId + '

' + + '

req.clientId: «' + String(req.clientId) + '» (type: ' + typeof req.clientId + ', len: ' + String(req.clientId).length + ')

' + + '

email (local): ' + email + '

' + + '

clientId (local): ' + clientId + '

' + + '

activeClientId (local): ' + activeClientId + '

' + + '

isImpersonated: ' + isImpersonated + '

' + + '

impersonatedCompanyId (local): ' + impersonatedCompanyId + '

' + '

IMPERSONATION_ORIGINAL env: ' + (process.env.IMPERSONATION_ORIGINAL || 'не задан') + '

' + '

IMPERSONATION_TARGET env: ' + (process.env.IMPERSONATION_TARGET || 'не задан') + '

' + '

IMPERSONATION_COMPANY env: ' + (process.env.IMPERSONATION_COMPANY || 'не задан') + '

' +