Skip to content

Conversation

@lexiv0re
Copy link
Collaborator

@lexiv0re lexiv0re commented Sep 5, 2025

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
@lexiv0re lexiv0re requested review from Copilot and utkaka September 5, 2025 05:38
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13508

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for space membership via token claims, allowing specific spaces to be granted access through authentication tokens. The implementation extends the token system to include space references and automatically adds users to specified spaces during employee creation.

  • Extends token structure to include optional space references in permissions grants
  • Modifies token generation and decoding to handle space membership claims
  • Updates employee creation logic to automatically add users to token-specified spaces

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
server/token/src/token.ts Adds spaces field to PermissionsGrant interface and token generation
server/server/src/client.ts Implements method to extract permissions grant from token and pass to session context
server/middleware/src/triggers.ts Updates middleware to pass grant information to session context
server/core/src/utils.ts Adds PermissionsGrant import and grant field to SessionDataImpl
server/account/src/utils.ts Updates workspace selection to extract and pass grant information from tokens
server-plugins/contact-resources/src/index.ts Modifies employee creation to add users to spaces specified in token grants
packages/core/src/utils.ts Defines PermissionsGrant interface with optional spaces array
packages/core/src/server.ts Adds grant field to SessionData interface
.vscode/launch.json Updates model version from 0.7.186 to 0.7.230

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@lexiv0re lexiv0re merged commit f81576c into develop Sep 5, 2025
25 of 26 checks passed
@lexiv0re lexiv0re deleted the uberf-13507/space-member-claim branch September 5, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support space membership claim in token

3 participants