1
mirror of https://github.com/rclone/rclone synced 2024-12-23 14:23:44 +01:00
rclone/fs/config
Nick Craig-Wood 2d01a65e36 oauthutil: read a fresh token config file before using the refresh token.
This means that rclone will pick up tokens from concurrently running
rclones.  This helps for Box which only allows each refresh token to
be used once.

Without this fix, rclone caches the refresh token at the start of the
run, then when the token expires the refresh token may have been used
already by a concurrently running rclone.

This also will retry the oauth up to 5 times at 1 second intervals.

See: https://forum.rclone.org/t/box-token-refresh-timing/8175
2019-01-08 11:01:30 +00:00
..
configflags copy,move: restore --no-traverse flag 2018-12-02 20:28:13 +00:00
configmap all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
configstruct config: add configstruct parser to parse maps into config structures 2018-07-16 08:50:52 +01:00
flags fs: factor OptionToEnv and ConfigToEnv into fs 2018-07-16 08:50:52 +01:00
obscure Add tests for reveal functions 2018-08-07 20:51:50 +01:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_other.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_read_password.go config: fix error reading password from piped input - fixes #1308 2018-06-28 11:54:15 +01:00
config_test.go config: Improve the Provider matching to have a negated match #2140 2018-04-13 16:06:37 +01:00
config_unix.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config.go oauthutil: read a fresh token config file before using the refresh token. 2019-01-08 11:01:30 +00:00
rc_test.go config: add rc operations for config 2018-11-05 15:44:40 +00:00
rc.go config: add rc operations for config 2018-11-05 15:44:40 +00:00