Skip to content

app/: auth review follow-ups: session CORS, providers, token last use (sc-8900) - #58

Merged
ndbroadbent merged 4 commits into
mainfrom
laravel-auth-followups
Dec 2, 2026
Merged

ndbroadbent merged 4 commits into
mainfrom
laravel-auth-followups

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Stacked on #57. These are the coordinator's follow-ups from reviewing #51 and #52.

  • GET /auth/session is ported as today: signed_in, name, avatar_url, and org when the person has exactly one organization. It's no-store and varies on Origin and Cookie. It answers CORS with credentials only for the site's own origin (VISUALCI_SITE_URL, matched exactly), never a reflected one. Tested with the site's origin and an outside one.
    • Not yet: the vci_signed_in hint cookie the site reads. Laravel encrypts web-group cookies, so it needs an EncryptCookies exception, which comes with the web routes.
  • GET /auth/providers lists the forges whose OAuth application is configured (GITHUB_CLIENT_ID, GITLAB_CLIENT_ID).
  • Tokens' last_used_at is written when a personal or project token is used, at most once a minute per token (one conditional UPDATE), for the tokens pages. Tested.
  • Project tokens stay members of their own project, as on today's server, where MCP's need_role gives a project principal Member. So CI, or an agent holding the token, can upload, finalize and review, but can't change settings. The doc comment says so, and the test covers it.

All 19 app tests pass, and clippy is clean.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

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

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

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

@ndbroadbent
ndbroadbent force-pushed the laravel-auth-followups branch from 7184f0a to 0ebc697 Compare December 2, 2026 13:34
@ndbroadbent
ndbroadbent force-pushed the laravel-auth-followups branch from 0ebc697 to 610bab7 Compare December 2, 2026 14:00
@ndbroadbent
ndbroadbent force-pushed the laravel-oauth branch 2 times, most recently from 2570a3a to 44deeb9 Compare December 2, 2026 14:26
@ndbroadbent
ndbroadbent force-pushed the laravel-auth-followups branch 3 times, most recently from 82182ae to fefe129 Compare December 2, 2026 15:04
@ndbroadbent
ndbroadbent changed the base branch from laravel-oauth to main December 2, 2026 15:18
…r, the one organization) with CORS for the site's exact origin alone and no-store; /auth/providers lists the configured forges; tokens' last_used_at written at most once a minute; a project token stays a member of its own project (can review, as today), documented and tested
…n and readable by its script, on the site's domain) is set at sign-in, renewed or cleared by /auth/session and cleared at logout, as today's; /auth/providers and /login offer a forge only when its OAuth application has its ID and its secret
@ndbroadbent
ndbroadbent force-pushed the laravel-auth-followups branch from fefe129 to 32c7a78 Compare December 2, 2026 15:18
@ndbroadbent
ndbroadbent merged commit fddf325 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-auth-followups branch December 2, 2026 15:41
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