Unable to authenticate OneDrive client #3680
-
|
Summary Details https://login.microsoftonline.com/common/oauth2/nativeclient?code=... Instead, the browser transitions to a blank or intermediate page with no redirect URL visible in the address bar, no link to click, and no way to extract the authorization code. The client eventually times out with “no redirect URI received.” What I’ve already tried Multiple distros (Debian, Ubuntu, Noble, Live USB sessions) Multiple browsers (Firefox, Chrome, private windows, fresh profiles) Multiple OneDrive client builds (including fresh rebuilds) Running the client in a VM and on bare metal Clearing cookies, cache, and all Microsoft login state Using different networks The behavior is identical in all cases: the redirect URI is never emitted. Device Code Flow Questions Is this redirect-suppression behavior known or documented on Microsoft’s side? Is there a recommended workaround when the Authorization Code Flow does not emit a redirect URI? Should I be using Device Code Flow instead, and if so, what is the correct way to enable it in current builds? Any guidance would be appreciated. Thank you for your attention to this matter. I look forward to hearing from you. Alex Sokolek |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
What you are describing does not indicate that client code has “disappeared” from the application. There are two separate things here which need to be kept distinct:
Please also note the important limitation here:
So before anything else, you need to clearly state:
Because that changes what is and is not supported. Also, if you believe your installed client “does not expose” device authentication, then the most likely explanation is that you are not actually running the binary you think you are running, or you have multiple Please run the following and provide the complete output: sudo find / -xdev -type f -name 'onedrive' -executable 2>/dev/null -print0 \
| while IFS= read -r -d '' f; do
echo "=== $f ==="
"$f" --version 2>&1
echo
doneAlso provide: onedrive --version
onedrive --display-config
which onedrive
type -a onedriveWithout that data, there is nothing concrete to diagnose. At the moment, the most likely possibilities are:
Please provide the requested output and state clearly whether the account is Personal or Business. |
Beta Was this translation helpful? Give feedback.
-
|
Why do you have 3 copies of the client installed? Your first action is to remove all of those and install the client in the correct manner for your platform. If you are using Debian or Ubuntu or any distribution based on those you must install the client following these instructions: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md All documentation is very clear on this. Please take this corrective action immediately. |
Beta Was this translation helpful? Give feedback.
-
|
@alexsokolek2
please perform the following to assist you. For each command please provide the output. Display any existing configurationForce a logoutForce a re-authentication of the clientWhen you run this command, your application output should be similar to the following: Take the whole URL: Paste this in a web browser. Follow the illustrations as documented here: https://github.com/abraunegg/onedrive/blob/master/docs/usage.md#interactive-authentication-using-oauth2-and-a-redirect-uri When the redirect URI is returned, due to a Microsoft change, you have 3 seconds to copy this before pasting this back to the client prompt. This is all explained here: #3558 |
Beta Was this translation helpful? Give feedback.
Thanks for the update, and no problem – if rclone is meeting your needs, that’s a perfectly reasonable choice.
Just to clarify for anyone else reading this thread: