OneDrive login not possible

What is the problem you are having with rclone?

I cannot access my onedrive account, see here:

http://localhost:53682/?error=invalid_client&error_description=AADSTS650051%3a+Using+application+%27rclone%27+is+currently+not+supported+for+your+organization+uni-osnabrueck.de+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+uni-osnabrueck.de+before+the+application+rclone+can+be+provisioned.%0d%0aTrace+ID%3a+92f125b6-dd03-4afb-bdb7-74b72f4f8b00%0d%0aCorrelation+ID%3a+ddc7ce4a-7639-4894-b960-92dd7c57f750%0d%0aTimestamp%3a+2021-04-26+21%3a29%3a34Z&state=RXJZPAYyDtxyjgHJPl1vVQ#

is there anything I could do?

What is your rclone version (output from rclone version)

<5>NOTICE: Config file "/home/user/.config/rclone/rclone.conf" not found - using defaults
rclone v1.56.0-beta.5439.5d799431a
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.8.0-50-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.3
- go/linking: static
- go/tags: none

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

  • os/version: ubuntu 20.04 (64 bit)

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

MS OneDrive

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

rclone config

The rclone config contents with secrets removed.

A log from the command with the -vv flag

<5>NOTICE: Config file "/home/user/.config/rclone/rclone.conf" not found - using defaults
<7>DEBUG : rclone: Version "v1.56.0-beta.5439.5d799431a" starting with parameters ["rclone" "config" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> OneDrive
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 Providers including AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, and Tencent COS
   \ "s3"
 5 / Backblaze B2
   \ "b2"
 6 / Box
   \ "box"
 7 / Cache a remote
   \ "cache"
 8 / Citrix Sharefile
   \ "sharefile"
 9 / Compress a remote
   \ "compress"
10 / Dropbox
   \ "dropbox"
11 / Encrypt/Decrypt a remote
   \ "crypt"
12 / Enterprise File Fabric
   \ "filefabric"
13 / FTP Connection
   \ "ftp"
14 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
15 / Google Drive
   \ "drive"
16 / Google Photos
   \ "google photos"
17 / Hadoop distributed file system
   \ "hdfs"
18 / Hubic
   \ "hubic"
19 / In memory object storage system.
   \ "memory"
20 / Jottacloud
   \ "jottacloud"
21 / Koofr
   \ "koofr"
22 / Local Disk
   \ "local"
23 / Mail.ru Cloud
   \ "mailru"
24 / Mega
   \ "mega"
25 / Microsoft Azure Blob Storage
   \ "azureblob"
26 / Microsoft OneDrive
   \ "onedrive"
27 / OpenDrive
   \ "opendrive"
28 / OpenStack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
29 / Pcloud
   \ "pcloud"
30 / Put.io
   \ "putio"
31 / QingCloud Object Storage
   \ "qingstor"
32 / SSH/SFTP Connection
   \ "sftp"
33 / Sugarsync
   \ "sugarsync"
34 / Tardigrade Decentralized Cloud Storage
   \ "tardigrade"
35 / Transparently chunk/split large files
   \ "chunker"
36 / Union merges the contents of several upstream fs
   \ "union"
37 / Uptobox
   \ "uptobox"
38 / Webdav
   \ "webdav"
39 / Yandex Disk
   \ "yandex"
40 / Zoho
   \ "zoho"
41 / http Connection
   \ "http"
42 / premiumize.me
   \ "premiumizeme"
43 / seafile
   \ "seafile"
Storage> 26
** See help for onedrive backend at: https://rclone.org/onedrive/ **

OAuth Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> 
OAuth Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> 
Choose national cloud region for OneDrive.
Enter a string value. Press Enter for the default ("global").
Choose a number from below, or type in your own value
 1 / Microsoft Cloud Global
   \ "global"
 2 / Microsoft Cloud for US Government
   \ "us"
 3 / Microsoft Cloud Germany
   \ "de"
 4 / Azure and Office 365 operated by 21Vianet in China
   \ "cn"
region> 
Edit advanced config? (y/n)
y) Yes
n) No (default)
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 (default)
n) No
y/n> y
<7>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=vnwEjEyjnosN8DSr30kFvA
Log in and authorize rclone for access
Waiting for code...
<7>DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=b15665d9-eda6-4092-8539-0eec376afd59&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+offline_access+Sites.Read.All&state=vnwEjEyjnosN8DSr30kFvA
<7>DEBUG : Received GET request on auth server to "/"
<7>DEBUG : Closing auth server
<7>DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection
Failed to configure token: Error: Auth Error
Code: ""
Description: No code returned by remote server
Help: 

are you trying to connect to a new azure site for the first time?
you might need to setup dns records as per this message
An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+uni-osnabrueck.de+before+the+application+rclone+can+be+provisioned.

have you tried to search the internet?
https://www.koskila.net/how-to-fix-admin-consent-issues-aadsts65001/

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