syncthing/gui/default/syncthing
Jakob Borg b014a9ebc2 lib/api: Add cache busting for basic auth (ref #9208) (#9215)
This adds our short device ID to the basic auth realm. This has at least
two consequences:

- It is different from what's presented by another device on the same
address (e.g., if I use SSH forwards to different dives on the same
local address), preventing credentials for one from being sent to
another.

- It is different from what we did previously, meaning we avoid cached
credentials from old versions interfering with the new login flow.

I don't *think* there should be things that depend on our precise realm
string, so this shouldn't break any existing setups...

Sneakily this also changes the session cookie and CSRF name, because I
think `id.Short().String()` is nicer than `id.String()[:5]` and the
short ID is two characters longer. That's also not a problem...
2023-11-15 10:54:03 +01:00
..
core gui, man, authors: Update docs, translations, and contributors 2023-10-16 03:45:30 +00:00
development gui: Reformat HTML & JS for consistent white space 2018-12-25 14:26:46 +01:00
device gui: Remove unused hard-coded styles from Recent Changes modal (#9101) 2023-09-12 14:47:31 +02:00
folder gui: Fix File Versioning icon to match in all places (#9070) 2023-09-01 11:15:20 +02:00
settings Add HTML login form (fixes #4137) (#8757) 2023-10-06 13:00:58 +02:00
transfer gui: Show full error for failed items (#9005) 2023-07-26 23:20:17 +02:00
usagereport Add oxford comma (#9137) 2023-10-06 17:25:28 +02:00
app.js lib/api: Add cache busting for basic auth (ref #9208) (#9215) 2023-11-15 10:54:03 +01:00