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 committed 2026-07-19 01:00:37 +07:00
1 parent 21d6603b57
commit bb17ad6f4d
5 files changed
+73 -7

No files matched your search

+4
View File
@@ -25,6 +25,8 @@ declare module '@fastify/jwt' {
name: string
apps: string[]
permissions: string[]
tenants?: Record<string, string>
bgp_tenant_id?: string
is_admin?: boolean
iss: string
}
@@ -34,6 +36,8 @@ declare module '@fastify/jwt' {
name: string
apps: string[]
permissions: string[]
tenants?: Record<string, string>
bgp_tenant_id?: string
is_admin?: boolean
iss: string
}