A second way into the same account: “Continue with Google / GitHub” beside the name and password, on
cartopolis.org and in the app. The account stays a Cartopolis account with a Cartopolis name
(anna@cartopolis.org). Google or GitHub only confirm who you are, and the account can
have both, one, or a password as well.
Drawn in the web UI's tokens (src/css/theme.css, dark half). Everything here is
NEW unless marked TODAY.
The sign-in card every page without a session shows (elements/signin), with the two buttons on top. Below them, the name and password form as it is now.
One account for the world and for this page.
/api/auth/google/callback. No Google or GitHub script is loaded on our pages.openid email profile, GitHub
read:user user:email. That is a stable id, the e-mail address and a display name.
We never post anywhere and never read repositories or contacts.GET /api/register lists what is on, and a server with neither shows exactly
today's card.Google asks which account to use and says what it will share. Back on cartopolis.org the only thing left to ask is your name here, because that is your address in chat, calls and the fediverse.
to continue to Cartopolis
/register, and the person can change it. It is permanent, so it is asked
for, not derived from a Gmail address.email_verified, or GitHub's primary
verified address, counts as confirmation, which is what the mail link exists for. A provider
address that is not verified is not stored, and the account starts with none./register does
today, and only already-linked accounts can sign in with Google.Someone who signed up with a password tries GitHub for the first time. We don't join the two on the e-mail address alone. The password is asked for once, and after that either way works.
That address belongs to anna@cartopolis.org. Enter its password once to add GitHub to it, and you can then sign in either way.
/register, which deliberately
answers every address the same. The person has just proved control of the address, which is
exactly what the mail link proves.access-tokens.md: nothing changes a password today). Until it does, that link is the
operator's address. Flagged in the open questions.The app's sign-in card (login_screen.rs) gets the same two buttons. Google doesn't allow its sign-in inside an embedded view, so the app opens the phone's browser, which comes back to the app when it is done.
Didn't start this from the app? Sign it out.
AuthCredential::Token, the same one “Stay signed in”
already uses TODAY.https://cartopolis.org/go/…, the app link the manifest
already claims TODAY. Desktop: the app just waits; switching back
is enough.A small block on the account's page, next to Access tokens (pages/tokens). Link or remove a provider, or add a password to an account that started with Google.
Confirm it's you before a new token is made.
midas bot or a script
signs in.Off unless configured, per provider. Every self-hosted server registers its own app with Google and GitHub; nothing is shared through cartopolis.org.
# cartopolis.toml (or CARTO_AUTH_GOOGLE_CLIENT_ID …) [auth.google] client_id = "1234-abc.apps.googleusercontent.com" client_secret = "from the environment, never this file" [auth.github] client_id = "Ov23li…" client_secret = "from the environment" # redirect to register at each provider: # https://cartopolis.org/api/auth/google/callback # https://cartopolis.org/api/auth/github/callback
http.rs): /api/auth/{provider}/start and
…/callback, plus /api/auth/app/{code} for the app's pickup. Google is OpenID
Connect, so its answer is a signed token we check. GitHub is plain OAuth, so we ask its API for the
user and their verified addresses.midas reserve when built./api/auth/ paths listed, as every player route does.