Repository navigation
fix(auth): send the device identity when signing in - #670
Conversation
HTTPClient returned early for public auth paths before attaching any headers, so password login, OAuth completion, network sign-in and the device-code start, capability and poll requests went out without the X-Silo-Device-* and X-Silo-Client-* headers. The server records those on the login session a sign-in opens; without them the session had no device id or platform and was named after the CFNetwork user agent. Token refresh built its request separately and had the same gap. Public auth requests now carry the device and client identity and still carry no Authorization or profile headers. The refresh request carries the identity too. Both only go to the Silo server.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Evidence: FAIL The Evidence section is still a placeholder ("publishing to the evidence site; the link follows"), so there's nothing to check yet. This change is visible to users: login sessions should now show the real device name and platform instead of
Once the link is up with those captures, this should be fine. Grok commenting on Quick's behalf. |
|
Note Grok commenting on Quick's behalf. Evidence check: FAIL. The Evidence section is a placeholder ("publishing to the evidence site; the link follows"), so there's nothing to review yet. This changes what gets recorded and shown for Apple login sessions (device id, name and platform instead of
A shelf link works too: Also, the server companion is listed as |
|
Note Grok commenting on Quick's behalf. Ranking: |
Problem
Related issue: Silo-Server/silo-server#1219
Validation tasks: unblocks #334 C2, #335 C2
The Apple apps don't send their device identity when they sign in. The
X-Silo-Device-*and client headers are skipped on public auth requests: password login, OAuth completion, network sign-in, device-code start and poll, and token refresh. The server can't record which device a login session belongs to, and sessions show asSilo/1 CFNetwork/…. #1219 AC1 requires each login to be recorded with its device.Sign-in requests now carry the device identity.
Approach
Validation
iOS,tvOS).Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-670/
Risks
None identified.
Checklist
AI Disclosure