Onedrive office365 business: Failed to configure token

What is the problem you are having with rclone?

I am receiving an error from 365 after approving rclone the browser

Waiting for code...
Got code
2020/07/06 16:34:17 Failed to configure token: failed to get token: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_request","error_description":"AADSTS900432: Confidential Client is not supported in Cross Cloud request.\r\nTrace ID: 640de8f6-bc75-44a4-8f5d-c298e9640d01\r\nCorrelation ID: c83846de-770c-478e-8c85-7a2eb0070ac0\r\nTimestamp: 2020-07-06 21:34:17Z","error_codes":[900432],"timestamp":"2020-07-06 21:34:17Z","trace_id":"640de8f6-bc75-44a4-8f5d-c298e9640d01","correlation_id":"c83846de-770c-478e-8c85-7a2eb0070ac0"}

What is your rclone version (output from rclone version)

rclone v1.50.2
- os/arch: linux/amd64
- go version: go1.13.6

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 20.04 x86_64

Which cloud storage system are you using? (eg Google Drive)

onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

The rclone config contents with secrets removed.

N/A


A log from the command with the -vv flag

rclone config -vv
2020/07/06 17:00:44 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "config" "-vv"]
2020/07/06 17:00:44 DEBUG : Using config file from "/home/usernamehere/.config/rclone/rclone.conf"
Current remotes:

Name                 Type
====                 ====
test-personal              onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> test-business
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"
 2 / Alias for an existing remote
   \ "alias"
 3 / Amazon Drive
   \ "amazon cloud drive"
 4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Dropbox
   \ "dropbox"
10 / Encrypt/Decrypt a remote
   \ "crypt"
11 / FTP Connection
   \ "ftp"
12 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
13 / Google Drive
   \ "drive"
14 / Google Photos
   \ "google photos"
15 / Hubic
   \ "hubic"
16 / JottaCloud
   \ "jottacloud"
17 / Koofr
   \ "koofr"
18 / Local Disk
   \ "local"
19 / Mail.ru Cloud
   \ "mailru"
20 / Microsoft Azure Blob Storage
   \ "azureblob"
21 / Microsoft OneDrive
   \ "onedrive"
22 / OpenDrive
   \ "opendrive"
23 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
24 / Pcloud
   \ "pcloud"
25 / Put.io
   \ "putio"
26 / SSH/SFTP Connection
   \ "sftp"
27 / Transparently chunk/split large files
   \ "chunker"
28 / Union merges the contents of several remotes
   \ "union"
29 / Webdav
   \ "webdav"
30 / Yandex Disk
   \ "yandex"
31 / http Connection
   \ "http"
32 / premiumize.me
   \ "premiumizeme"
Storage> onedrive
** See help for onedrive backend at: https://rclone.org/onedrive/ **

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> 
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> 
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
2020/07/06 17:00:54 DEBUG : Starting auth server on 127.0.0.1:53682
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=u91HsqmP-WUCj0DZkAEe4w
Log in and authorize rclone for access
Waiting for code...
2020/07/06 17:01:20 DEBUG : Received GET request on auth server to "/"
Got code
2020/07/06 17:01:20 DEBUG : Closing auth server
2020/07/06 17:01:20 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
2020/07/06 17:01:20 Failed to configure token: failed to get token: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_request","error_description":"AADSTS900432: Confidential Client is not supported in Cross Cloud request.\r\nTrace ID: 4253401d-b185-40ff-9340-9705f812f800\r\nCorrelation ID: d713593d-5488-4271-b55e-eff66841f6ec\r\nTimestamp: 2020-07-06 22:01:20Z","error_codes":[900432],"timestamp":"2020-07-06 22:01:20Z","trace_id":"4253401d-b185-40ff-9340-9705f812f800","correlation_id":"d713593d-5488-4271-b55e-eff66841f6ec"}

hello and welcome to the forum,
you are using an old version of rclone, please update and test.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.