rclone/backend/googlephotos
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
..
api doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
testfiles googlephotos: Backend for accessing Google Photos #369 2019-07-02 15:26:55 +01:00
albums.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
albums_test.go build: run gofmt -s to simplify the code: suggested by Go Report Card 2020-06-18 18:45:39 +01:00
googlephotos.go drive,gcs,googlephotos: disable OAuth OOB flow (copy a token) due to google deprecation 2022-02-18 12:46:30 +00:00
googlephotos_test.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
pattern.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
pattern_test.go gphotos: new flag --gphotos-include-archived - fixes #4728 2021-01-28 16:51:31 +00:00