client/webserver: require auth for companion app QR endpoint.#3541
Merged
JoeGruffins merged 1 commit intodecred:masterfrom Mar 6, 2026
Merged
client/webserver: require auth for companion app QR endpoint.#3541JoeGruffins merged 1 commit intodecred:masterfrom
JoeGruffins merged 1 commit intodecred:masterfrom
Conversation
f32bd5a to
53f1e9c
Compare
Harden the companion app pairing flow: - Enforce Tor: the QR handler returns HTTP 400 when no onion address is available, removing the insecure http:// fallback. - Single-token rotation: each QR generation revokes the previous companion token so only one is valid at a time. - Unclaimed expiry: tokens that are not scanned within 10 minutes are automatically revoked. - Claim tracking: the first use of a companion token marks it as claimed, preventing expiry of active pairings. - DB persistence: companion tokens are stored in BoltDB so they survive server restarts. Claimed tokens also survive logout. - Unpair support: new POST /api/unpaircompanionapp endpoint and UI button to explicitly remove a companion app pairing. - Paired status: the /api/user response includes a companionAppPaired boolean so the UI can show pairing state.
53f1e9c to
9a046fd
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.
Harden the companion app pairing flow: