# Question about Onedrive authentication methods

**URL:** <https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063>\
**Category:** Dev Discussions\
**Created:** [December 15, 2024, 8:13am UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063 "2024-12-15T08:13:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![doronbehar](https://forum.rclone.org/user_avatar/forum.rclone.org/doronbehar/32/15308_2.png) [@doronbehar](https://forum.rclone.org/u/doronbehar)\
**Post date:** [December 15, 2024, 8:13am UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/1 "2024-12-15T08:13:38Z")

</div>

I have been using rclone with a onedrive remote for a while now and everything is OK. Still though, I want to get a slightly better synchronization experience then running `rsync bisync` periodically, or with `inotifywatch` and all kind of other hooks. Hence this search made me find this tool:

> **[GitHub - abraunegg/onedrive: OneDrive Client for Linux](https://github.com/abraunegg/onedrive)**
>
> OneDrive Client for Linux

However, when trying to setup this up I encountered an authentication denial that is described [here](https://github.com/abraunegg/onedrive/discussions/2745).

I am writing this post because I want to find out how come I didn't encounter the same authentication issue with `rclone`. What is the authentication method that `rclone` uses? Perhaps I'd be able to convince or modify `onedrive` to use the same authentication method... For comparison, this is an example `oauth` URL that `onedrive` produces:

```auto
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=22c49a0d-d21c-4792-aed1-8f163c982546&scope=Files.ReadWrite%20Files.ReadWrite.all%20Sites.ReadWrite.All%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient

```

And the response URI is supposed to be something like this:

```auto
https://login.microsoftonline.com/common/oauth2/nativeclient?code=<redacted>

```

Perhaps `rclone` is using SAML? Thanks for any help

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [December 15, 2024, 9:37am UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/2 "2024-12-15T09:37:20Z")

</div>

Looking briefly at your issue it looks like it is your onedrive account permissions problem - I think you should ask your admin to allow this other app. It is probably as simple as that.

---

<div class="post-metadata">

**Author:** ![doronbehar](https://forum.rclone.org/user_avatar/forum.rclone.org/doronbehar/32/15308_2.png) [@doronbehar](https://forum.rclone.org/u/doronbehar)\
**Post date:** [December 15, 2024, 9:41am UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/3 "2024-12-15T09:41:54Z")

</div>

Yes but how come I didn't have to ask them to manually allow the rclone app to access the data? That's what's so peculiar to me.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [December 15, 2024, 9:45am UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/4 "2024-12-15T09:45:33Z")

</div>

I think the best way forward would be to talk to your admin. Usually they have some reasons (e.g. some apps causing issues for other users) to introduce certain restrictions and trying to find a workaround (or hack) is not the right thing to do - talking from IT admin perspective here:)

---

<div class="post-metadata">

**Author:** ![Dan\_Foxley](https://forum.rclone.org/user_avatar/forum.rclone.org/dan_foxley/32/18559_2.png) [@Dan\_Foxley](https://forum.rclone.org/u/Dan_Foxley)\
**Post date:** [December 26, 2024, 8:04pm UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/5 "2024-12-26T20:04:16Z")

</div>

Are you able to login to: [https://entra.microsoft.com/](https://entra.microsoft.com/)? My regular non-Admin user can, I don't recall enabling my reqular user to have more permissions, perhaps your non-admin user can see the registered apps in your Entra.

I can see app registristrations in there:

 ![image](https://forum.rclone.org/uploads/default/original/3X/6/3/636b0f90b908e6b01f5bbe43c312c928ece1ec80.png)

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 25, 2025, 8:04pm UTC](https://forum.rclone.org/t/question-about-onedrive-authentication-methods/49063/6 "2025-01-25T20:04:39Z")

</div>

Closed on January 25, 2025, 8:04pm UTC

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