Skip to content

feat(tokens): accept an org allowlist in create_token - #457

Merged
BryanFRD merged 1 commit into
mainfrom
feat/token-org-ids
Oct 20, 2026
Merged

BryanFRD merged 1 commit into
mainfrom
feat/token-org-ids

Conversation

@BryanFRD

Copy link
Copy Markdown
Contributor

Adds optional org_ids to create_token and forwards it to POST /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.

@ferrfleet-interne ferrfleet-interne Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@BryanFRD
BryanFRD merged commit 4185461 into main Oct 20, 2026
16 checks passed
@BryanFRD
BryanFRD deleted the feat/token-org-ids branch October 20, 2026 09:22
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)
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