Repository navigation
app/: GitHub sign-in at today's URLs, with the waitlist (sc-8900) - #52
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
laravel-auth
branch
from
December 2, 2026 12:45
9cd20a5 to
53b0d47
Compare
ndbroadbent
force-pushed
the
laravel-sign-in
branch
from
December 2, 2026 12:47
f2f6e54 to
c669c75
Compare
This was referenced Dec 2, 2026
VisualCIdocspring/visualci · build #201 · 331 unchanged · no changes This PR vs base: nothing since #193, across 2 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…o=, /auth/{forge}/callback, /auth/{forge}/link, /auth/session and /auth/logout at today's URLs; Laravel's social login plus GitHub's API for every verified email and the installations' repositories; finds the person by identity, the signed-in user when linking, or a verified email, else makes an account (SignedUp) or, with VISUALCI_WAITLIST=true, a waitlist row and one line; SignedIn carries the repositories for memberships; users have no password or remember token (a provider of our own); forge types ported
…and ID (a GitHub and a GitLab ID can be the same number); a test that a cross-site POST to /auth/logout is refused (Laravel's web-group CSRF check: 419) while the app's own works
ndbroadbent
force-pushed
the
laravel-sign-in
branch
from
December 2, 2026 13:00
c669c75 to
85d427c
Compare
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.
Sign-in for the Laravel Rust app (sc-8900, the auth side), stacked on #51. Same URLs as today's server, so the web app's links keep working.
UserimplementsAuthenticatableby hand (no password hash, no remember token).Usersprovider of our own finds users by ID and never by a login name.passwordandremember_tokencolumns are gone.GET /auth/{forge}?return_to=…goes off to GitHub through Laravel's social login. The return address must be a path on this site.GET /auth/{forge}/callback:/user/emails(every verified address) and/user/installations(each repository the person can reach through the GitHub App, with their permission), as today's server does.POST /auth/{forge}/link), else an account with one of their verified addresses. Otherwise it makes an account.VISUALCI_WAITLIST=true, someone new gets a waitlist row and the one-line page instead of an account.SignedUp { user_id, via }on a new account: the domain side gives it its own organization.SignedIn { user_id, forge, site, repositories }on every sign-in: memberships follow the repositories. That listener comes when the domain tables land.GET /auth/sessionsays whether this browser is signed in.POST /auth/logoutends the session.forge::holds the forge-neutral types (kinds, permissions, repository URLs, identities), ported as they are.forge::githubholds the sign-in's API calls.Tests (
app/tests/sign_in.rs, with social login and GitHub's API faked):All 11 app tests pass. Clippy and fmt are clean.