STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
Get token using single tenant without change App config on Portal Azure
Run the command 'rclone version' and share the full output of the command.
rclone version
rclone v1.62.2
- os/version: ubuntu 22.10 (64 bit)
- os/kernel: 5.15.107-1-pve (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: none
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 authorize "onedrive" "secrets removed"
The rclone config contents with secrets removed.
No config file created yet.
A log from the command with the -vv
flag
rclone authorize "onedrive" "secrets removed" -vv
2023/06/11 00:06:19 DEBUG : rclone: Version "v1.62.2" starting with parameters ["rclone" "authorize" "onedrive" "secrets removed" "-vv"]
2023/06/11 00:06:19 DEBUG : **temp-fs**: config in: state="", result=""
2023/06/11 00:06:19 NOTICE: Config file "C:\\Users\\me\\AppData\\Roaming\\rclone\\rclone.conf" not found - using defaults
2023/06/11 00:06:19 DEBUG : OAuth only is set - overriding return state
2023/06/11 00:06:19 DEBUG : **temp-fs**: config out: out=&{State:*oauth,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/11 00:06:19 DEBUG : **temp-fs**: config in: state="*oauth,,,", result=""
2023/06/11 00:06:19 DEBUG : **temp-fs**: config out: out=&{State:*oauth-confirm,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/11 00:06:19 DEBUG : **temp-fs**: config in: state="*oauth-confirm,,,", result=""
2023/06/11 00:06:19 DEBUG : Auto confirm is set, choosing default "true" for state "*oauth-islocal,,,", override by setting config parameter "config_is_local"
2023/06/11 00:06:19 DEBUG : **temp-fs**: config out: out=&{State:*oauth-islocal,,, Option:<nil> OAuth:<nil> Error: Result:true}, err=<nil>
2023/06/11 00:06:19 DEBUG : **temp-fs**: config in: state="*oauth-islocal,,,", result="true"
2023/06/11 00:06:19 DEBUG : **temp-fs**: config out: out=&{State:*oauth-do,,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2023/06/11 00:06:19 DEBUG : **temp-fs**: config in: state="*oauth-do,,,", result=""
2023/06/11 00:06:19 NOTICE: Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
2023/06/11 00:06:19 DEBUG : Starting auth server on 127.0.0.1:53682
2023/06/11 00:06:19 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=KO3miN7O5RMCdCQza8-l3A
2023/06/11 00:06:19 NOTICE: Log in and authorize rclone for access
2023/06/11 00:06:19 NOTICE: Waiting for code...
2023/06/11 00:06:19 DEBUG : Redirecting browser to: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?access_type=offline&client_id=secrets removed&redirect_uri=http%3A%2F%2Flocalhost%3A53682%2F&response_type=code&scope=Files.Read+Files.ReadWrite+Files.Read.All+Files.ReadWrite.All+Sites.Read.All+offline_access&state=KO3miN7O5RMCdCQza8-l3A
The url redirected (Redirecting browser to:) has not the tenant as described in https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Making a manual edit of url does not works because the error shows me that de URL is not the same that the app request.
I can not change de App config in Portal Azure for multi tenant.
Checking rclone config flow with advance options (tenant_id_code_replaced), I can not find the way to include the tenant, so I tried in a windows machine, getting the same message:
Edit advanced config?
y) Yes
n) No (default)
y/n> y
Option token.
OAuth Access Token as a JSON blob.
Enter a value. Press Enter to leave empty.
token>
Option auth_url.
Auth server URL.
Leave blank to use the provider defaults.
Enter a value. Press Enter to leave empty.
auth_url> https://login.microsoftonline.com/tenant_id_code/oauth2/v2.0/authorize
Option token_url.
Token server url.
Leave blank to use the provider defaults.
Enter a value. Press Enter to leave empty.
token_url>
Is there any flow or option to include the tenant in the token request flow of rclone (onedrive)?
Thanks for your support! (Sorry for my English).