Repository navigation
Sign in to a shellwing server on the phones - #375
Merged
Merged
Conversation
The phones sign in to a server as they do to OneDrive: iOS's browser sheet and Android's Custom Tab, coming back to the app's own scheme, com.hivepaas.shellwing://server, which the server now takes besides a loopback port (shellwing-server #49). - remote: server::AppSignIn, the code exchanged with the verifier that stays on the phone; the exchange is shared with the desktop's SignIn. - mobile: ServerSignIn (url, scheme, finish); an address that is not https:// is refused with the desktop's words. Stopping sync signs the phone out of the server, as on the desktop. - iOS: Settings > Sync > shellwing server. The place picker is a menu now: eight places did not fit side by side. The places are named as on the desktop. - Android: the shellwing server chip; SignInTab takes its redirect too, with an intent filter of its own. - Joining a vault on a server offers Start over here, on the desktop too: a server's files are reached only through the app. - An e2e test of a phone signing in against a real server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tiendc
force-pushed
the
sync/server-on-phones
branch
from
December 5, 2026 08:06
b25fea1 to
9e4d677
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.
The phones can now sync with a shellwing server, as the desktop does. They sign in the same way as for OneDrive: iOS uses its browser sheet and Android a Custom Tab, and both come back to the app's own scheme,
com.hivepaas.shellwing://server.Needs hivepaas/shellwing-server#49, which makes the server accept that redirect besides a loopback port. Until it is deployed, a server answers
ERR_DEVICE_REDIRECT_INVALIDwhen the person clicks Allow.Rust
server::AppSignIn(crates/remote) starts the sign-in and exchanges the code when the browser comes back with it.SignIn.ServerSignInincrates/mobileexposesurl,schemeandfinish.iosorandroid.https://, is refused with the desktop's (translated) messages.iOS
Android
SignInTabwith OneDrive and Dropbox: the tab now also takescom.hivepaas.shellwing://server, and the sync screen finishes whichever sign-in is under way.com.hivepaas.shellwing://server.Start over on a server. When the server already holds another device's vault, joining now offers Start over here, on the desktop as well as the phones. A person cannot delete a server's files themselves: they are reached only through the app.
Docs.
docs/design/sync.mdsays the phones sign in to a server. It also fixes two lines that still said OneDrive was not on iOS.Tests
server::tests::a_phone_signs_in_through_the_apps_schemeruns against the fake server. It refuses a wrong host, another sign-in's state, a missing code and a missing state. It also checks that the verifier never goes to the browser.a_phone_signs_in_to_a_server_through_the_apps_schemeincrates/mobile.crates/core/tests/shellwing_server.rs::a_phone_signs_in_through_the_apps_schemeran against a real server built from Keys: the agent, saved passphrases, and a key made for a host #49:ios;adb reverse).cargo test -p shellwing-remote -p shellwing-mobile, clippy and fmt,i18n.py check(2018/2018, no new strings), the iOS Simulator build, and the Android debug APK.🤖 Generated with Claude Code