rclone/lib
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
..
atexit atexit: prevent Run from being called on nil signal 2018-05-12 18:59:25 +02:00
dircache drive: fix DirMove leaving a hardlinked directory behind #2245 2018-04-15 10:12:21 +01:00
israce fs/asyncreader: skip some tests to work around race detector bug 2018-08-20 12:34:29 +01:00
oauthutil oauthutil: read a fresh token config file before using the refresh token. 2019-01-08 11:01:30 +00:00
pacer S3: Use (custom) pacer, to retry operations when reasonable - fixes #2503 2018-09-11 07:57:03 +01:00
readers lib/readers: add mutex to RepeatableReader - fixes #2572 2018-11-12 12:02:05 +00:00
rest rest: Fix documentation so it is clearer when resp.Body is closed 2018-10-13 22:47:12 +01:00