{"id":39760854,"url":"https://github.com/hevelius/files_external_onedrive","last_synced_at":"2026-01-18T11:37:47.839Z","repository":{"id":50858607,"uuid":"190725262","full_name":"hevelius/files_external_onedrive","owner":"hevelius","description":":mega: :floppy_disk: External storage support for Microsoft OneDrive","archived":false,"fork":false,"pushed_at":"2021-05-28T11:19:04.000Z","size":2415,"stargazers_count":67,"open_issues_count":41,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-03-04T02:13:34.386Z","etag":null,"topics":["nextcloud","onedrive"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hevelius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-07T10:22:19.000Z","updated_at":"2023-01-08T12:56:59.000Z","dependencies_parsed_at":"2022-09-03T01:10:35.520Z","dependency_job_id":null,"html_url":"https://github.com/hevelius/files_external_onedrive","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/hevelius/files_external_onedrive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hevelius%2Ffiles_external_onedrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hevelius%2Ffiles_external_onedrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hevelius%2Ffiles_external_onedrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hevelius%2Ffiles_external_onedrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hevelius","download_url":"https://codeload.github.com/hevelius/files_external_onedrive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hevelius%2Ffiles_external_onedrive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextcloud","onedrive"],"created_at":"2026-01-18T11:37:47.757Z","updated_at":"2026-01-18T11:37:47.824Z","avatar_url":"https://github.com/hevelius.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=VUYAAKGJZB9U6"],"categories":[],"sub_categories":[],"readme":"# Files External Onedrive\n### external storage support for NextCloud\n\n[![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)\n[![Build Status](https://travis-ci.org/hevelius/files_external_onedrive.svg?branch=master)](https://travis-ci.org/hevelius/files_external_onedrive)\n[![codecov](https://codecov.io/gh/hevelius/files_external_onedrive/branch/master/graph/badge.svg?token=AnnDxRQkSj)](https://codecov.io/gh/hevelius/files_external_onedrive)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=VUYAAKGJZB9U6)\n\nRequirements:\n* php with zlib support\n* files_external app must be enabled :exclamation:\n\n## Steps For Installation:\n- Get the code\n```bash\n$ cd /server_path/apps\n$ git clone https://github.com/hevelius/files_external_onedrive\n$ cd files_external_onedrive\n$ composer install\n```\n- Activate the files_external app from NC settings page or cli\n```bash\n$ cd /server_path/\n$ php -f occ app:enable files_external\n```\n- Activate files_external_onedrive from NC settings page or cli\n```bash\n$ cd /server_path/\n$ php -f occ app:enable files_external_onedrive\n```\n- Fill up the storage details (See Below _Configuring OAuth2_)\n- Fire up the files page to see the ```OneDrive``` mounted as external storage\n\n## Configuring OAuth2\nConnecting OneDrive is a little more work because you have to create a onedrive app. \n- Log into the https://portal.azure.com/ page and search App Registration\n\n##### Create new app\n- Click New registration \n- Name Your App\n- Make sure to select:  \n`Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)`\n\n![](./images/img.png)\n\n- For **Redirect URL (optional)** add the following URL ```http://path/to/nextcloud/index.php/settings/user/externalstorages``` _(Replace http://path/to/nextcloud/index.php with you valid Nextcloud installation path, ensure that you don't leave `index.php` in the path.  Example: `https://nextcloud.myserver.com/settings/admin/externalstorages`)_\n- Click **Register** to create your app.\n\n##### Add client secret\n- Under the section **Certificates and secrets** add new client secret, Name, choose expires:never.  \nMake sure to copy the created key (you will not be able to do that later on). Key needs to be pasted in Nextcloud in last step\n\n##### Add permissions to app\n- Under the section **API permissions**\n- Click add a permissions \n- Choose  Microsoft Graph, Delegated permissions\n- add auth for [ User.Read | Files.ReadWrite.All | offline_access ] (the last is necessary to perform a correct token refresh)\n\n##### On Nextcloud\n- Copy Client Id and client secret then Go to Nextcloud ```/settings/user/externalstorages``` and Add a new storage **OneDrive**\n- Fill the details Client Id, Client Secrets from you onedrive App page\n- Click Grant Access and then you will be redirected for OAuth login\n- After completing the OAuth you will be redirect back to Storage Section and you should see **green** mark along your storage configuration\n\nReferences:\n* https://github.com/NastuzziSamy/files_external_gdrive\n* https://github.com/icewind1991/files_external_dropbox\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhevelius%2Ffiles_external_onedrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhevelius%2Ffiles_external_onedrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhevelius%2Ffiles_external_onedrive/lists"}