[DOCUMENTATION] User Guides #321
Replies: 4 comments
-
How to connect OneDrive to AeroFTP (and Rclone with custom Client ID & Secret):Achieving what the title of this comment says was challenging because there wasn't sufficient guidance on it. For Rclone, the benefit of a custom OAuth Client ID & Secret is to not be throttled by using the same details at the same time as other users. For AeroFTP, it seems like the only option to connect OAuth cloud drives. I actually prefer the latter, because with AeroFTP you know for sure that you have your own OAuth Client ID & Secret working when connected, while Rclone sometimes fails silently and uses an old token with its default Client ID if you enter your OAuth Client ID & Secret incorrectly. Now that I managed to generate OAuth Client ID and Secret for OneDrive, I'd like to offer guidance on how I managed this. 1. Log into https://portal.azure.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade with your personal Microsoft accountThis link SHOULD allow logging in to Azure without giving Microsoft any payment card details and without needing to subscribe to any Azure services. At any rate, I suggest not using Azure services like creating cloud resources such as virtual machines or databases to not risk getting charged, if all you want here is to connect OneDrive to AeroFTP or Rclone. 2. Click on '➕ New registration' at the top-lefta. Give it a name like b. Select 'Any Entra ID Tenant + Personal Microsoft accounts' for the 'Supported account types'. c. For the Redirect URI, select 'Public client/native (mobile & desktop)' and enter Click 'Register'. Don't worry if you didn't complete steps b and c here, you can do them later. 3. See the menu of the app(s) you createdClick on ☰ at the top-left, and drag 'Microsoft Entra ID' all the way to the top so it'll be in quick access for you for next time and click on it. Click on the 'All applications' tab on the left to see the app(s) you created. Click on the app you just created or wish to edit. 4. Settings of the new app in Azurea. As you enter the 'Overview' tab, hover over the value of 'Application (client) ID' and click on the 'Copy to clipboard' button that appears to its right. This is your OAuth Client ID. b. In the 'Manage' tab on the left, hover over 'Branding & properties', 'Authentication (Preview)', 'API permissions' and 'Certificates & secrets', and click on the star ⭐ to the right of each to add them to 'Favorites'. These are the only ones that we need to care about. c. In 'Authentication (Preview)' you can click on '➕ Add Redirect URI' to add both the Redirect URIs of AeroFTP and Rclone. d. In 'API permissions' click '➕ Add a permission', click on 'Microsoft Graph', click on 'Delegated permissions' and search and add the following: e. In 'Certificates & secrets' click on '➕ New client secret', add whatever description you like and choose an expiry date. 5. Now you can enter your OneDrive Client ID & Secret into Rclone and AeroFTPIn Rclone, you can enter Part of the hint that this works is that you'll receive a "New app(s) connected to your Microsoft account" email from |
Beta Was this translation helpful? Give feedback.
-
|
As for connecting Google Drive, Box and Dropbox to Rclone and AeroFTP, I find Rclone's official guides sufficiently easy to follow.
Connecting Google Drive to AeroFTP was discussed in #121 where @axpnet wrote a detailed guide on how to connect Google Drive specifically to AeroFTP. The main difference between setting these OAuth cloud drives for Rclone VS AeroFTP is that Rclone and AeroFTP use different Redirect URIs, which need to be entered in the websites of these cloud drives. It is sometimes the case that AeroFTP and Rclone can share the same Client ID and Secret as each other if the same user-created "app" accepts multiple Redirect URIs, as is in the example above with OneDrive. This might sound complicated to beginners, but I promise that these guides are simple enough to follow, |
Beta Was this translation helpful? Give feedback.
-
|
Ehud, this is a genuinely useful guide, thank you for taking the time to write it out step by step. The OneDrive / Azure App registration flow is exactly the kind of thing that is hard to get right from the official docs alone, and walking through the redirect URIs for both AeroFTP ( The Google Drive / Box / Dropbox pointers to the Rclone guides, plus the cross-reference to the Google Drive walkthrough in #121, round it out nicely. I would like to fold the OneDrive guide into its dedicated page at https://docs.aeroftp.app/providers/onedrive, crediting you as the author. I will adapt the wording slightly to match the docs style and keep the AeroFTP-specific redirect URI front and center, but the substance and the credit stay yours. I will link back to this discussion from the page so the full context and the Rclone-side details remain available. Thanks again, this is the kind of contribution that makes the docs better for everyone. |
Beta Was this translation helpful? Give feedback.
-
|
It’s worth noting that pCloud Drive disabled the ability that users had by default to set up OAuth Client ID and Secret by themselves at https://docs.pcloud.com/my_apps/. I managed to create an OAuth app for pCloud Drive by emailing support@pcloud.com. To my knowledge, this is the only cloud drive where generating credentials requires emailing the provider’s helpdesk team. support@pcloud.com claims that they disabled this to prevent abuse, which they encountered in the past. support@pcloud.com asked for the following details to generate the OAuth Client ID and Secret for me:
You can change all of these details manually afterwards from https://docs.pcloud.com/my_apps/. support@pcloud.com never got back to me by email to confirm that my OAuth app is ready. By the way, there's no Redirect URI in https://rclone.org/pcloud; this means that it’s currently not possible to use the custom Client ID and Secret for pCloud Drive in Rclone. This is yet another advantage that AeroFTP currently has over Rclone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I thought of creating this post for users to write guides in, in case users find gaps in the documentation,
such as how to connect complicated OAuth cloud drives.
@axpnet, you're welcome to add these to their dedicated pages like https://docs.aeroftp.app/providers/onedrive.
Beta Was this translation helpful? Give feedback.
All reactions