Repository navigation
app/: auth review follow-ups: session CORS, providers, token last use (sc-8900) - #58
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-oauth
branch
from
December 2, 2026 13:15
857ffa2 to
a23b979
Compare
ndbroadbent
force-pushed
the
laravel-auth-followups
branch
from
December 2, 2026 13:15
58ea782 to
7184f0a
Compare
VisualCIdocspring/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
force-pushed
the
laravel-oauth
branch
from
December 2, 2026 13:34
a23b979 to
26a11d0
Compare
ndbroadbent
force-pushed
the
laravel-auth-followups
branch
from
December 2, 2026 13:34
7184f0a to
0ebc697
Compare
ndbroadbent
force-pushed
the
laravel-auth-followups
branch
from
December 2, 2026 14:00
0ebc697 to
610bab7
Compare
ndbroadbent
force-pushed
the
laravel-oauth
branch
2 times, most recently
from
December 2, 2026 14:26
2570a3a to
44deeb9
Compare
ndbroadbent
force-pushed
the
laravel-auth-followups
branch
3 times, most recently
from
December 2, 2026 15:04
82182ae to
fefe129
Compare
ndbroadbent
force-pushed
the
laravel-oauth
branch
from
December 2, 2026 15:04
4262ec2 to
d98a0e2
Compare
…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
force-pushed
the
laravel-auth-followups
branch
from
December 2, 2026 15:18
fefe129 to
32c7a78
Compare
…rgo couldn't read the manifest and main's app job failed)
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.
Stacked on #57. These are the coordinator's follow-ups from reviewing #51 and #52.
GET /auth/sessionis ported as today:signed_in,name,avatar_url, andorgwhen the person has exactly one organization. It'sno-storeand 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.vci_signed_inhint cookie the site reads. Laravel encrypts web-group cookies, so it needs anEncryptCookiesexception, which comes with the web routes.GET /auth/providerslists the forges whose OAuth application is configured (GITHUB_CLIENT_ID,GITLAB_CLIENT_ID).last_used_atis written when a personal or project token is used, at most once a minute per token (one conditional UPDATE), for the tokens pages. Tested.need_rolegives a project principalMember. 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.