syncthing/test
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
..
h1 test: Update testing configs 2023-11-13 13:51:17 +01:00
h2 test: Update testing configs 2023-11-13 13:51:17 +01:00
h3 test, lib/model: Various integration test updates & improvements (#6956) 2020-09-07 09:35:37 +02:00
h4 test, lib/model: Various integration test updates & improvements (#6956) 2020-09-07 09:35:37 +02:00
logs Improvements to integration tests 2015-01-22 00:18:08 +00:00
.gitignore Add devices without restart (fixes #2083) 2015-07-22 10:43:47 +02:00
cli_test.go Normalize CLI options to always use two dashes. (#8037) 2021-11-04 08:42:55 +01:00
conflict_test.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
delay_scan_test.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
filetype_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
folders.sh lib/config, lib/model: Limit concurrent pulls (fixes #5914) (#6290) 2020-01-27 17:31:17 +01:00
http_test.go lib/api: Add cache busting for basic auth (ref #9208) (#9215) 2023-11-14 11:57:39 +01:00
ignore_test.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
manypeers_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
override_test.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
parallel_scan_test.go all: Correct various typos (#8870) 2023-05-09 08:54:02 +02:00
reconnect_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
reset_test.go all: Remove usage of deprecated io/ioutil (#7971) 2021-11-22 08:59:47 +01:00
scan_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
symlink_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
sync_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
transfer-bench_test.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
usage_unix.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
usage_windows.go all: Update build constraints to Go 1.17 style (#7894) 2021-08-17 10:10:41 +02:00
util.go all: Correct various typos (#8870) 2023-05-09 08:54:02 +02:00