Skip to content

Conversation

@lexiv0re
Copy link
Collaborator

  • Adds notBefore, expiration and parameters to grant access only during specified period of time
  • Adds personalized param to control whether the access link should be personalized or could be used by multiple people

Related to: https://front.hc.engineering/workbench/platform/tracker/UBERF-13511
Closes #9789

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

Connected to Huly®: UBERF-13636

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 guest tokens with open accounts by introducing time-based access controls and personalization options. It enables guest access links that can be time-limited and either personalized for a single user or shareable for multiple users.

  • Adds notBefore, expiration, and sub (subject) fields to tokens for time-based access control
  • Introduces personalized parameter to control whether access links are for single-user or multi-user access
  • Updates frontend to handle token expiration and "not yet active" states with appropriate user feedback

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
server/token/src/token.ts Core token structure changes and generation logic for time-based fields
server/account/src/utils.ts Token handling updates in workspace selection and guest account management
server/account/src/operations.ts Access link creation with time validation and personalization options
plugins/login-resources/src/plugin.ts New status codes and strings for token expiration handling
plugins/login-resources/src/components/Auth.svelte Frontend handling of expired and not-yet-active tokens with countdown display
plugins/login-assets/lang/*.json Localized strings for access expiration messages across multiple languages
packages/ui/src/components/TimeLeft.svelte Enhanced time display component with hours support and day formatting
packages/platform/src/platform.ts New platform status codes for token state validation
packages/account-client/src/client.ts Client API updates for new access link options

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

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
BykhovDenis
BykhovDenis previously approved these changes Sep 11, 2025
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
@haiodo haiodo merged commit c0fa4b7 into develop Sep 11, 2025
35 of 37 checks passed
@haiodo haiodo deleted the uberf-13511/guest-open-accs branch September 11, 2025 15:49
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 open account links with exp and nbf claims

4 participants