feat(auth): enhance JWT claims and app switcher configuration
Build and Push Auth Portal Docker Image / build-and-push (push) Successful in 1m44s
Build and Push Auth Portal Docker Image / create-release (push) Skipped

- Added support for optional tenant IDs in JWT claims for user permissions.
- Updated auth routes to include tenant information in the JWT payload.
- Enhanced app switcher configuration to handle tenant IDs without exposing them publicly.
- Improved documentation for EvoBGP tenant ID integration and its usage in JWT.
This commit is contained in:
Denozordec
2026-07-19 01:00:37 +07:00
parent 21d6603b57
commit bb17ad6f4d
5 changed files with 73 additions and 7 deletions
@@ -92,6 +92,22 @@ export function AppSwitcherAdminEditor({
placeholder="https://…"
/>
</Field>
{appId === 'bgp' ? (
<Field className="sm:col-span-2">
<FieldLabel htmlFor={`tenant-${appId}`}>
EvoBGP tenant ID
</FieldLabel>
<Input
id={`tenant-${appId}`}
{...form.register(`apps.${appIndex}.tenantId`)}
placeholder="UUID тенанта из EvoBGP"
/>
<p className="text-muted-foreground text-xs">
Попадает в JWT (`bgp_tenant_id` / `tenants.bgp`). Публичный
switcher его не отдаёт.
</p>
</Field>
) : null}
<Field className="sm:col-span-2">
<FieldLabel htmlFor={`subtitle-${appId}`}>
Описание