This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

OneDrive integration#


It is Microsoft Graph REST API based integration.
Proxy: If your server's internet connection uses proxy server. You need to whitelist domains : login.microsoftonline.com, graph.microsoft.com

You will start at the Microsoft azure portal:
https://azure.microsoft.com/en-us/features/azure-portal/

Application registration: Go to the App registrations and click on New registration:

Name it. Select the Microsoft account types. The redirect URL must end with register_microsoft_graph_api/. Then click on register.

attachments

Under the redirect URL configuration enable the Access Token to be issued by the authorization endpoint:

attachments

API permission: You must also provide permission for the Microsoft Graph. Go to the Api permission. Click on Add permission, and select Microsoft Graph. Choose Delegated permission and add the "Files.ReadWrite.All" permission:

attachments

1. OneDrive Business Type
#


attachments
Client id : You can find it at Azure portal -> App Registration -> Overview:

attachments

Secret key: A new client secret needs to be created as well. Go to the "Certificate & secrets" and generate a new secret key. Click on New client secret:

attachments
attachments

OneDrive remote item settings:

User name: Itt must start with "app_permission", then the Client ID separated with tilda.
    app_permission~<<Client ID>>
Password: Client Secret.


2 Ondrive Personal Type
#


!!!Constraint: Microsoft Graph REST API does not support stream upload. In order to integrate with CrushFTP the files are temporarily stored as a local file (CrushFTP install folder/onedrive/) during the upload.

attachments

attachments

Client id : You can find it at Azure portal -> App Registration -> Overview:

attachments

Secret key: A new client secret needs to be created as well. Go to the "Certificate & secrets" and generate a new secret key. Click on New client secret:

attachments
attachments

OneDrive remote item settings:

!!! The CrushFTP admin page URL must match the redirect URL. In our example: http://localhost:9090

Select the OneDrive item type and click on the "Get Refresh Token" button. Provide the Client ID, Client Secret, and Tenant. Tenant: See your App registration -> Overview -> EndPoints. Based on the App Rregistration Account type it can be an id, common, or consumer.

attachments

Click on the "OK" button, log in with your Azure credentials, and allow CrushFTP to have access to your OneDrive files. After that the form will disappear and the username and password will be filled. Done.

attachments

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
client_id.png 93.9 kB 1 29-Dec-2020 05:25 krivacsz
png
ms_graph_app_permission.png 81.4 kB 1 08-Sep-2023 07:47 krivacsz
png
ms_graph_delegated.png 107.3 kB 1 08-Sep-2023 07:48 krivacsz
png
new_registration.png 81.9 kB 3 24-Nov-2021 08:49 krivacsz
png
new_secret.png 81.9 kB 2 24-Nov-2021 09:51 krivacsz
png
permission_final.png 165.2 kB 1 29-Dec-2020 05:25 krivacsz
png
permission_microsoft_graph.png 182.9 kB 2 29-Dec-2020 05:25 krivacsz
png
register_app.png 230.6 kB 2 31-Mar-2021 13:00 krivacsz
png
remote_item_app_permission.png 101.1 kB 1 08-Sep-2023 08:17 krivacsz
png
remote_item_done.png 193.7 kB 1 29-Dec-2020 05:25 krivacsz
png
remote_item_settings.png 176.3 kB 1 29-Dec-2020 05:25 krivacsz
png
secret_value.png 42.7 kB 1 24-Nov-2021 09:52 krivacsz
« This particular version was published on 08-Sep-2023 08:11 by krivacsz.
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
LeftMenu

JSPWiki