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
Jakob Borg
4b750b6dc3
all: Remove usage of deprecated io/ioutil ( #7971 )
...
As of Go 1.16 io/ioutil is deprecated. This replaces usage with the
corresponding functions in package os and package io.
2021-11-22 08:59:47 +01:00
Jakob Borg
d47745a86b
all: Update build constraints to Go 1.17 style ( #7894 )
2021-08-17 10:10:41 +02:00
Jakob Borg
6e35592e9e
test: Clean & unflake HTTP / filetype tests
2017-11-13 01:00:49 +01:00
Jakob Borg
f7fc0c1d3e
all: Update license url to https (ref #3976 )
2017-02-09 08:04:16 +01:00
Nathan Morrison
d322ebd0b9
Add API service for local disk changes
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3626
LGTM: calmh, AudriusButkevicius
2016-09-28 15:54:13 +00:00
Laurent Etiemble
fed374fcb6
Add a CORS handler to deal with preflight OPTIONS requests
2016-01-26 21:55:51 +01:00
Mike Boone
342036408e
Fix typos.
2015-11-11 21:20:34 -05:00
Jakob Borg
4581c57478
Fix import paths
2015-09-22 19:38:46 +02:00
Lode Hoste
8eb494c13e
Disable testing upgrade endpoint because it fails when disconnected
2015-08-17 22:08:35 +02:00
Jakob Borg
7705a6c1f1
mv internal lib
2015-08-09 09:35:26 +02:00
Audrius Butkevicius
37a42dc408
Fix CSRF tests ( fixes #2009 )
2015-06-30 19:38:27 +01:00
Jakob Borg
c3d07d60ca
Refactored integration tests
...
Added internal/rc to remote control a Syncthing process and made the
"awaiting sync" determination reliable.
2015-06-19 08:47:47 +02:00
Jakob Borg
9463192224
Refactor integration tests to be a little cleaner and more stable, I hope
2015-05-23 23:26:23 +02:00
Jakob Borg
e215cf6fb8
Add some REST API benchmarks
2015-05-23 20:15:54 +02:00
Audrius Butkevicius
75fb14acaf
Fix integration tests
2015-04-09 16:16:39 +01:00
Jakob Borg
e884d0fda6
Tidy up the REST interface URLs ( fixes #1593 )
2015-04-07 12:16:23 +02:00
Sergey Mishin
77882e6086
Enable gzip encoding static files for webgui
2015-04-06 03:11:30 +03:00
Jakob Borg
a3cf37cb2e
Refactor and improve integration tests
2015-04-01 11:13:19 +02:00
Jakob Borg
32425c5561
MPLv2
2015-03-17 16:02:27 +01:00
Jakob Borg
d4d391b34f
Change integration test "log" field to "instance"
2015-01-11 09:55:17 +01:00
Jakob Borg
2090530bbb
Improve and clean up integration tests, benchmark.
2014-12-19 12:43:48 +01:00
Jakob Borg
82c6caef85
Use more inclusive copyright header
2014-11-17 12:54:42 +01:00
Jakob Borg
d476c2b613
Simplify HTTP testing
2014-10-06 12:03:49 +02:00