Repository navigation
fix(auth): nself login works against production auth_server (P7-PROD-27) - #1027
Merged
Merged
Conversation
Default auth host is https://auth-server.nself.org (NSELF_AUTH_SERVER_URL still overrides, trailing slash trimmed). The device flow uses POST /auth/device-code and POST /auth/device-code/token with the server's fields (verification_uri, access_token, expires_in) and error codes: authorization_pending keeps waiting, slow_down adds 5 s, expired_token and access_denied stop with a remediation. The approved device token carries no identity, so PollDeviceCode reads GET /auth/session and fails the login if that lookup fails instead of storing a blank email or a defaulted tier. /account/devices and /account/team are served by no host: a 404 from either returns E225 (exit 2) instead of a raw 404. Contract tests run against fixtures taken from auth_server route shapes; nothing contacts a real host. E225 gets its owner row and its error-codes.md row. Fixes D-0083. (P7-PROD-27)
…h error to E225 in the command layer (P7-PROD-27)
acamarata
force-pushed
the
feat/p7-prod-27-login-auth-host
branch
from
October 29, 2026 17:29
1e6a8a6 to
fcaf126
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.
P7-PROD-27 (D-0083), code part.
https://auth-server.nself.org;NSELF_AUTH_SERVER_URLstill overrides.POST /auth/device-codeandPOST /auth/device-code/tokenwith the server's fields and error codes (authorization_pending,slow_downadds 5 s,expired_token,access_denied).GET /auth/session; if that fails the login fails and nothing is stored./account/devicesand/account/teamreturn E225 (exit 2) on a 404. E225 has its owner row and itserror-codes.mdrow (generated by wikigen; outside the listed write scope but required byTestErrorCodesPageMatchesRegistry).internal/auth/testdata/auth_server/. No live calls.Owner checks left (not run here): JWKS probe
https://auth-server.nself.org/auth/.well-known/jwks.jsonreturns 200, read-only probe of/account/devicesand/account/teamon both hosts, and the real production login (P7-PROD-15 recreates auth_server on prod; P7-PROD-99 proves login).