rclone/backend/drive
Nick Craig-Wood dc7e3ea1e3 drive,gcs,googlephotos: disable OAuth OOB flow (copy a token) due to google deprecation
Before this change, rclone supported authorizing for remote systems by
going to a URL and cutting and pasting a token from Google. This is
known as the OAuth out-of-band (oob) flow.

This, while very convenient for users, has been shown to be insecure
and has been deprecated by Google.

https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html#disallowed-oob

> OAuth out-of-band (OOB) is a legacy flow developed to support native
> clients which do not have a redirect URI like web apps to accept the
> credentials after a user approves an OAuth consent request. The OOB
> flow poses a remote phishing risk and clients must migrate to an
> alternative method to protect against this vulnerability. New
> clients will be unable to use this flow starting on Feb 28, 2022.

This change disables that flow, and forces the user to use the
redirect URL flow. (This is the flow used already for local configs.)

In practice this will mean that instead of cutting and pasting a token
for remote config, it will be necessary to run "rclone authorize"
instead. This is how all the other OAuth backends work so it is a well
tested code path.

Fixes #6000
2022-02-18 12:46:30 +00:00
..
test drive: add --drive-import-formats 2018-09-25 15:20:23 +01:00
drive_internal_test.go test: use T.TempDir to create temporary test directory 2022-02-01 11:47:04 +00:00
drive_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
drive.go drive,gcs,googlephotos: disable OAuth OOB flow (copy a token) due to google deprecation 2022-02-18 12:46:30 +00:00
upload.go backends: Add context checking to remaining backends #4504 2021-03-16 16:17:22 +00:00