syncthing/next-gen-gui/src/app
Jakob Borg 439c6c5b7c
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-14 11:57:39 +01:00
..
card build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
charts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
dashboard next-gen-gui: Add button to restore default theme (#7433) 2021-03-08 12:54:08 +01:00
dialog build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
http-interceptors all: Fix typos found by codespell (#8833) 2023-03-21 08:07:28 +01:00
list-toggle build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
lists build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
mocks build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
services all: Fix typos found by codespell (#8833) 2023-03-21 08:07:28 +01:00
api-utils.ts lib/api: Add cache busting for basic auth (ref #9208) (#9215) 2023-11-14 11:57:39 +01:00
app-routing.module.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
app.component.html next-gen-gui: Add button to restore default theme (#7433) 2021-03-08 12:54:08 +01:00
app.component.scss next-gen-gui: Add button to restore default theme (#7433) 2021-03-08 12:54:08 +01:00
app.component.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
app.component.ts next-gen-gui: Add button to restore default theme (#7433) 2021-03-08 12:54:08 +01:00
app.module.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
completion.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
connections.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
device.ts gui: Semicolons (#7597) 2021-05-03 12:14:54 +02:00
folder.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
style.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
system-status.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
trim.pipe.spec.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
trim.pipe.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00
type.ts build: Add build process for newgui (#7351) 2021-02-15 14:52:28 +01:00