Repository navigation
Document registering the GitHub OAuth App - #685
Merged
Merged
Conversation
Patriciaath999
force-pushed
the
document-oauth-app
branch
from
November 13, 2026 14:41
0bfa3a5 to
df75967
Compare
The docs named GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET but not the OAuth App they come from, and the callback path /api/callback appeared nowhere, so an operator who registered only the origin got a sign-in GitHub completed and the server never finished. docs/peer-interviews.md now walks through registering the app: the callback URL, the config file the client ID and secret go in, the one-time secret and the restart. It states that the app carries exactly one callback URL, since the server sends no redirect_uri and GitHub returns every sign-in to the first one registered, where a sign-in started at another host arrives without its state cookie (sysprog21#643). docs/install.md links to it. Close sysprog21#645 Close sysprog21#643 Change-Id: Ia24630fd4238ebdb3685e4a0b3e51167973b17cf
Patriciaath999
force-pushed
the
document-oauth-app
branch
from
November 14, 2026 10:01
df75967 to
db4f5e1
Compare
jserv
approved these changes
Nov 15, 2026
Contributor
|
Thank @Patriciaath999 for contributing! |
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.
The docs named
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETbut not the OAuth App they come from, and/api/callbackappeared nowhere indocs/,README.mdorconfig/codetrial.env.example. An operator who registered only the origin as the callback got a sign-in GitHub completed and the server never finished: GitHub returned to/?code=..., which nothing reads.docs/peer-interviews.mdgains a subsection under Configuration, "The GitHub OAuth App", covering where to register the app, the Homepage URL, the callback URL as the origin followed by/api/callback, the config file the client ID and secret go in, the client secret GitHub shows only once, and the restart the config needs. It states the single callback settled on #643:login_handlersends noredirect_uri, so GitHub returns every sign-in to the first URL registered, and the state cookie belongs to the host, so a sign-in started at another host fails with either of the two state errors. WithNODE_ENV=productionthe cookies areSecure, so the origin and the callback URL have to behttps://.docs/install.mdlinks to the subsection from its paragraph on the config file.Validation: documentation only. The pre-commit and commit-msg hooks passed; the error text quoted,
Login state is missing or expired., matchessrc/web/auth.rsat c54aed7, as doesLogin state did not match.#561 also edits
docs/install.md, in the paragraph just above the one changed here; the hunks do not overlap.Close #645
Close #643