KEMBAR78
GET /me/tokens: Add `crate_scopes` and `endpoint_scopes` fields by Turbo87 · Pull Request #6310 · rust-lang/crates.io · GitHub
Skip to content

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