cleanup: убраны устаревшие comma-separated clientId

This commit is contained in:
2026-06-04 16:38:33 +03:00
parent a0b66bb602
commit 28954515e3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ ipwhitelist-app/
## 5. Multi-Company ## 5. Multi-Company
Users can belong to multiple companies via comma-separated `clientId`: Users can belong to multiple companies via IAM API profiles:
- `ClientID: "WZ88888, WZ77777"` → two companies - `ClientID: "WZ88888, WZ77777"` → two companies
- Active company selector in UI (dropdown, `?switchTo=X` or JS navigation) - Active company selector in UI (dropdown, `?switchTo=X` or JS navigation)
- API supports `?client_id=<id>` parameter to specify active company - API supports `?client_id=<id>` parameter to specify active company
+2 -2
View File
@@ -5,7 +5,7 @@
- Любой clientId можно ввести вручную на `/login` - Любой clientId можно ввести вручную на `/login`
- JWT подписывается локальным RSA-ключом - JWT подписывается локальным RSA-ключом
## Что нужно от DevOps (v0.5.13) ## Что нужно от DevOps (v0.5.23)
### 1. Параметры для .env (на ВМ) ### 1. Параметры для .env (на ВМ)
@@ -37,7 +37,7 @@ APP_URL=https://<ваш-домен>
| **ClientID в токене** | Какой claim содержит ID компании? Сейчас ждём `ClientID` или `client_id`. | | **ClientID в токене** | Какой claim содержит ID компании? Сейчас ждём `ClientID` или `client_id`. |
| **Admin-роль** | Как определяется admin? `clientId === WZ01112` достаточно или нужен отдельный claim? | | **Admin-роль** | Как определяется admin? `clientId === WZ01112` достаточно или нужен отдельный claim? |
| **Redirect URI** | Какой зарегистрирован? `https://<домен>/callback`? | | **Redirect URI** | Какой зарегистрирован? `https://<домен>/callback`? |
| **Несколько компаний** | `clientid` в токене приходит как одна строка или через запятую? | | **Несколько компаний** | Компании через IAM API (GET /auth/user → profiles[]) |
### 3. Что сделано в коде (готово) ### 3. Что сделано в коде (готово)
+1 -1
View File
@@ -102,7 +102,7 @@
<form method="POST" action="/login-token"> <form method="POST" action="/login-token">
<input type="hidden" name="returnTo" value="<%= returnTo || '/' %>"> <input type="hidden" name="returnTo" value="<%= returnTo || '/' %>">
<div class="field"> <div class="field">
<label>Client ID (через запятую для нескольких компаний)</label> <label>Client ID</label>
<input type="text" name="clientId" placeholder="WZ88888,WZ77777" autocomplete="off"> <input type="text" name="clientId" placeholder="WZ88888,WZ77777" autocomplete="off">
</div> </div>
<button class="btn" type="submit">Войти</button> <button class="btn" type="submit">Войти</button>