Admin page for users in db-auth.
  • JavaScript 94%
  • CSS 4.7%
  • HTML 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Joel Andersson 4105b0e787 Makes the origin and database headings a quarter smaller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 12:53:28 +01:00
components Show or scan a QR code in its own section, with the buttons away until it's cancelled or stopped 2026-11-03 12:18:09 +01:00
app.css Makes the origin and database headings a quarter smaller 2026-11-12 12:53:28 +01:00
app.js Spaces the origin from the database, and names it: "Database: <relay>" 2026-11-12 12:51:48 +01:00
favicon.svg Add favicon to user admin page 2026-10-29 21:35:33 +01:00
index.html Loads db-connector 0.2.1 and webway 0.3.2, from the new pages host 2026-11-11 15:24:35 +01:00
LICENSE Stands on its own: loads db-auth 0.3.9 by URL, with a README and license 2026-11-12 12:40:55 +01:00
README.md Shows the page's origin above the relay, in the same big font 2026-11-12 12:43:21 +01:00
submitted.html Submit the login forms to a page of their own over HTTPS, with no named fields, so Safari doesn't call them non-secure 2026-11-02 12:16:15 +01:00

db-auth admin

Open the user admin page

The account page for db-auth: register, log in and out, passkeys, QR codes and deleting the user. It loads db-auth like any app.

A login made here is kept for every page on the same origin, so serve it from the apps' origin.

Running it

Open index.html, connect to ws://localhost:8080, and migrate as root when it asks; the root login ends once the migration has run.

  • It shows its origin and the relay it's connected to on top, and lists the other relays this browser is logged in to.
  • An app links to it with its relay in the fragment, #relay=…, which never reaches a server; the page then connects to it.
  • Passkeys need a secure context, so for those serve the folder, such as with python3 -m http.server, and open http://localhost:8000/.