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

GET /me/tokens: Add crate_scopes and endpoint_scopes fields #6310

Merged
merged 4 commits into from
Apr 12, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 12, 2023

These fields will be null if the token was created without any crate or endpoint scopes, or they will be arrays of the chosen scopes.

Note that these fields are considered experimental and we don't give any stability guarantees for now!

Example:

{
  // ...
  "crate_scopes": ["serde", "serde-*"]
  "endpoint_scopes": ["publish-new", "publish-update"],
}

Related:

Turbo87 added 4 commits April 12, 2023 10:10
…esting

Using insta ensures that tests will fail if we unintentionally change anything about the serialization format (e.g. adding token scopes fields 😉)
@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Apr 12, 2023
@Turbo87 Turbo87 mentioned this pull request Apr 12, 2023
7 tasks
@Turbo87 Turbo87 merged commit bf72300 into rust-lang:master Apr 12, 2023
@Turbo87 Turbo87 deleted the token-scopes-in-list branch April 12, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant