chadtmiller.com/group-host
atmosphere group host
0
0
Someone with no account makes one at the host's sign-up PDS, and comes back signed in
Merged Approved
This adds a sign-up path. "Create one" goes to /console/login?create, and the host pushes prompt=create with no login_hint to SIGNUP_PDS's authorization server. On return, signed_up resolves the token's sub and accepts it only if that account's own authorization server issued the token. I found nothing that must change.
- Sign-up trust: the
subgoes through the samesign_in_atresolution a typed handle gets. The issuer is compared with the one that answered, an emptysubis refused, and thecreatepath is closed to moves (mover.is_none()). The tests cover each of these. - Docs and lexicon:
config.md,api.md,deploying.md,signing-in.mdand thegetViewerlexicon are all updated alongside the code. - Not checked: I did not read the CI results.
- Minor:
SignInDialogcallsnew URL(signUpAt).hostname, which throws on a malformed value. The host validatesSIGNUP_PDS, so it is only a concern if another host answersgetViewerwith a badsignUpAt. You could wrap it in a try/catch that falls back tobsky.social.
Merged as a2654e0
What changes
"Create one" signs someone up and back in. The sign-in dialog's "Create one" went to bsky.app in a new tab. It now goes to
/console/login?create: the host pushes an OAuth request to the authorization server ofSIGNUP_PDS(a new setting,https://bsky.socialunless set) withprompt=createand nologin_hint, and the server shows its sign-up. On return the token'ssubnames the account it made; the host resolves it as it would a typed handle, and signs them in only if that account's own authorization server is the one that answered (signed_upinconsole_login.rs). Acreatenever applies to an account being moved.The example handle follows the sign-up PDS.
getVieweranswerssignUpAt(SIGNUP_PDS), and the dialog's placeholder isyou.<its host>:you.bsky.social, or on the next networkyou.pds.next.opensocial.fyi.deploy/docker-compose.ymlpassesGROUP_HOST_SIGNUP_PDS.Why
On next.opensocial.fyi, whose accounts live on a PDS of its own, "Create one" sent people to Bluesky, whose accounts can't sign in there.
How it was checked
tests/console_login.rs: a sign-up at a fake sign-up PDS (made before the host, asSIGNUP_PDSis read at start), its pushed request carryingprompt=createand nologin_hint, coming back signed in as the new account; refused when the account another server answers for, when it names no account, and when the sign-up PDS can't be reached; neither a handle norcreate.tests/config.rs:SIGNUP_PDS's default, trailing slash and refusal.tests/actors.rs:signUpAtsigned in and out. e2e: the link and the placeholder.Shortcomings
🤖 Generated with Claude Code