Skip to content

app/: personal and project tokens in the web app (sc-8900) - #64

Merged
ndbroadbent merged 2 commits into
mainfrom
laravel-tokens
Dec 2, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
laravel-tokens

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Stacked on #61. Today's token routes, ported unchanged:

  • /api/ui/me/tokens: list, make and delete one's own tokens.
  • /api/ui/orgs/{org}/projects/{project}/tokens: a project's tokens, for its admins only. A member gets a 403 and anyone else a 404.

A token is vcu_ or vci_ plus 40 letters and digits, shown once. Only its SHA-256 and its first ten characters are kept. Making one queues the TokenCreated security email to the person who made it.

Tests:

  • a personal token authenticates (/api/v1/whoami names it) until it's deleted, and a notice is queued;
  • a member can't make a project token and an admin can, and the new token acts for the project.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #351 · 331 unchanged · no changes

This PR vs base: nothing since #216, across 7 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent force-pushed the laravel-tokens branch 2 times, most recently from 9561ebd to 6fc1d73 Compare December 2, 2026 14:17
@ndbroadbent
ndbroadbent force-pushed the laravel-billing branch 2 times, most recently from 4989df4 to a32e77e Compare December 2, 2026 14:36
@ndbroadbent
ndbroadbent force-pushed the laravel-tokens branch 3 times, most recently from a26b4d3 to 503c4b8 Compare December 2, 2026 16:01
@ndbroadbent
ndbroadbent force-pushed the laravel-billing branch 2 times, most recently from 6db80c3 to 271704a Compare December 2, 2026 16:20
@ndbroadbent
ndbroadbent changed the base branch from laravel-billing to main December 2, 2026 16:40
…e (shown once, vcu_/vci_ plus 40 letters and digits, stored as SHA-256 with the first ten characters shown) and delete; project tokens by the project's admins (a member 403); a security notice when one is made
…en's id; a notice that can't be queued is logged, never losing a token that's already made
@ndbroadbent
ndbroadbent merged commit e2749b2 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-tokens branch December 2, 2026 17:06
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