Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fine-grained access tokens #110

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Add support for fine-grained access tokens #110

merged 2 commits into from
Mar 5, 2025

Conversation

dkhalife
Copy link
Owner

@dkhalife dkhalife commented Mar 5, 2025

No description provided.

@Copilot Copilot bot review requested due to automatic review settings March 5, 2025 01:25
Copy link
Contributor

@Copilot 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.

PR Overview

This PR introduces fine-grained access token support by enhancing token scope selection and updating related API calls. Key changes include:

  • Adding a new component (TokenScopes) to manage detailed token scopes.
  • Introducing a new TokenModal to replace the old TextModal for token creation.
  • Updating APITokenSettings and API functions to accept and process token scopes.

Reviewed Changes

File Description
src/views/Tokens/TokenScopes.tsx Implements token scope selection logic.
src/views/Modals/Inputs/TokenModal.tsx Adds a modal for token creation using token scopes.
src/views/Settings/APITokenSettings.tsx Updates token creation flow and API calls with new scopes support.
src/utils/api.ts Expands the ApiTokenScope definition with additional scopes.
src/api/users.ts Adjusts CreateLongLiveToken to support additional scope parameters.
src/views/Modals/Inputs/TextModal.tsx Removes obsolete TextModal component.

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

@dkhalife dkhalife merged commit 04797ca into main Mar 5, 2025
5 checks passed
@dkhalife dkhalife deleted the tokens branch March 5, 2025 01:33
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.

1 participant