rclone/lib/oauthutil
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
..
oauthutil_new.go Move dircache, oauthutil, rest and pacer modules into lib 2018-01-12 17:07:38 +00:00
oauthutil_old.go Move dircache, oauthutil, rest and pacer modules into lib 2018-01-12 17:07:38 +00:00
oauthutil.go oauthutil: read a fresh token config file before using the refresh token. 2019-01-08 11:01:30 +00:00
renew.go Move dircache, oauthutil, rest and pacer modules into lib 2018-01-12 17:07:38 +00:00