Repository navigation
feat(tokens): accept an org allowlist in create_token - #457
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Nothing blocking. The new field follows the existing pattern: a zod schema with uuid and min(1), and an undefined org_ids is dropped from the JSON body the same way expires_at is. The reveal refusal still runs before minting.
Nit: no test covers the default path (no org_ids), so nothing checks that the key stays out of the body and the API falls back to all orgs.
ferrflow Bot
added a commit
that referenced
this pull request
Oct 20, 2026
## [10.14.0] - 2026-10-20 ### Features - feat(tokens): accept an org allowlist in create_token (#457)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional
org_idstocreate_tokenand forwards it toPOST /auth/tokens. The API validates the ids against the creator's memberships and restricts the token to those orgs; omitted keeps the token unrestricted. Depends on FerrLabs/FerrLabs-Cloud#1141.