1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

Add easier headless configuration.

This will allow setting up a remote with copy&paste of values to a headless machine. It will allow copy+pasting a token into the configuration.

This requires rclone to be on a machine with a proper browser. Custom client id and secrets are supported.

To test token generation, use `rclone auth "fs type"`.
This commit is contained in:
klauspost
2016-01-04 16:13:36 +01:00
committed by Nick Craig-Wood
parent c245183101
commit bcbd30bb8a
9 changed files with 120 additions and 13 deletions

View File

@@ -224,6 +224,18 @@ var Commands = []Command{
},
NoStats: true,
},
{
Name: "authorize",
Help: `
Remote authorization.`,
Run: func(fdst, fsrc fs.Fs) error {
fs.Authorize()
return nil
},
NoStats: true,
MinArgs: 1,
MaxArgs: 3,
},
{
Name: "help",
Help: `