Manav Rathi baf9c02bc8
Paper
2024-06-08 11:39:23 +05:30
..
2024-06-05 12:29:35 +05:30
2024-06-08 11:39:23 +05:30
ff
2024-05-10 22:22:39 +05:30
2024-06-06 12:40:02 +05:30
2024-06-05 11:07:02 +05:30
2024-06-05 12:32:41 +05:30
2024-03-01 12:21:07 +05:30
2024-06-06 15:38:35 +05:30
2024-06-04 20:09:52 +05:30

Ente Accounts

Code that runs on accounts.ente.io.

Primarily, this serves a common domain where our clients (mobile and web / auth and photos) can create and authenticate using shared passkeys tied to the user's Ente account. Passkeys can be shared by multiple domains, so we didn't strictly need a separate web origin for sharing passkeys across our web clients, but we do need a web origin to handle the passkey flow for the mobile clients.

For more details about the Passkey flows, docs/webauthn-passkeys.md.

Development

To set this up to work with a locally running museum, modify your local museum.yaml to set the relaying party's ID to "localhost" (without any port number).

webauthn:
    rpid: "localhost"
    rporigins:
        - "http://localhost:3001"

Note that browsers already treat localhost as a secure domain, so Passkey APIs will work even if our local dev server is using http.