rclone/lib
Martin Hassack 65012beea4 lib/oauthutil: add support for OAuth client credential flow
This commit reorganises the oauth code to use our own config struct
which has all the info for the normal oauth method and also the client
credentials flow method.

It updates all backends which use lib/oauthutil to use the new config
struct which shouldn't change any functionality.

It also adds code for dealing with the client credential flow config
which doesn't require the use of a browser and doesn't have or need a
refresh token.

Co-authored-by: Nick Craig-Wood <nick@craig-wood.com>
2024-12-13 11:34:11 +00:00
..
atexit build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
batcher docs: fix typo in batcher docs for dropbox and googlephotos 2024-07-24 10:58:22 +01:00
bucket bucket: add Join function for a simplified path.Join 2023-03-03 15:51:00 +00:00
buildinfo build: fix gocritic lint issue unslice 2024-08-15 22:08:34 +01:00
cache fs/cache: fix parent not getting pinned when remote is a file 2024-09-28 13:49:56 +01:00
daemonize build: fix gocritic lint issue wrapperfunc 2024-08-15 22:08:34 +01:00
debug build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
dircache build: fix gocritic lint issue elseif 2024-08-15 22:08:34 +01:00
diskusage Add lib/diskusage to measure used/free on disks 2023-09-07 15:57:45 +01:00
encoder build: update logging statements to make json log work - fixes #6038 2024-09-06 17:04:18 +01:00
env docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
errcount errcount: factor errcount abstraction from operations 2024-02-22 11:13:54 +00:00
errors lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
exitcode cmd: change exit code from 1 to 2 for syntax and usage errors 2024-09-20 18:51:08 +02:00
file lib/file: use builtin MkdirAll with go1.22 instead of our own custom version for windows 2024-09-02 18:16:38 +02:00
http lib/http: disable automatic authentication skipping for unix sockets 2024-10-24 12:39:28 +01:00
israce build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
jwtutil build: fix govet lint errors with golangci-lint v1.60.1 2024-08-14 18:25:40 +01:00
kv build: fix linting issues reported by running golangci-lint with different GOOS 2024-04-22 19:29:12 +02:00
mmap lib/mmap: fix lint error on deprecated reflect.SliceHeader 2024-07-20 10:54:47 +01:00
multipart build: fix comments after golangci-lint upgrade 2024-11-11 18:03:36 +00:00
oauthutil lib/oauthutil: add support for OAuth client credential flow 2024-12-13 11:34:11 +00:00
pacer amazonclouddrive: remove Amazon Drive backend code and docs #7539 2024-01-04 17:05:54 +00:00
plugin build: remove build constraint syntax for go 1.16 and older 2024-04-18 16:53:55 +02:00
pool build: update logging statements to make json log work - fixes #6038 2024-09-06 17:04:18 +01:00
proxy build: fix lint errors when re-enabling revive exported & package-comments 2023-08-29 13:03:13 +01:00
random random: update Password docs 2024-04-25 11:14:14 +01:00
ranges refactor: replace min/max helpers with built-in min/max 2024-08-17 13:09:44 +02:00
readers ftp: fix multi-thread copy 2024-01-03 12:21:08 +00:00
rest build: fix gosimple lint errors with golangci-lint v1.60.1 2024-08-14 17:46:12 +01:00
sdactivation lib/sd-activation: wrap coreos/go-systemd 2024-09-06 17:21:56 +01:00
structs test: do not test deprecated and unused Dial and DialTLS functions on http Transport type 2023-03-26 14:28:15 +02:00
systemd build: update logging statements to make json log work - fixes #6038 2024-09-06 17:04:18 +01:00
terminal build: fix govet lint errors with golangci-lint v1.60.1 2024-08-14 18:25:40 +01:00
version Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00