Giter VIP home page Giter VIP logo

files_external_onedrive's Introduction

Files External Onedrive

external storage support for NextCloud

License: GPL v2 Build Status codecov Donate

Requirements:

  • php with zlib support
  • files_external app must be enabled โ—

Steps For Installation:

  • Get the code
$ cd /server_path/apps
$ git clone https://github.com/hevelius/files_external_onedrive
$ cd files_external_onedrive
$ composer install
  • Activate the files_external app from NC settings page or cli
$ cd /server_path/
$ php -f occ app:enable files_external
  • Activate files_external_onedrive from NC settings page or cli
$ cd /server_path/
$ php -f occ app:enable files_external_onedrive
  • Fill up the storage details (See Below Configuring OAuth2)
  • Fire up the files page to see the OneDrive mounted as external storage

Configuring OAuth2

Connecting OneDrive is a little more work because you have to create a onedrive app.

Create new app
  • Click New registration
  • Name Your App
  • Make sure to select:
    Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)

  • 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)
  • Click Register to create your app.
Add client secret
  • Under the section Certificates and secrets add new client secret, Name, choose expires:never.
    Make 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
Add permissions to app
  • Under the section API permissions
  • Click add a permissions
  • Choose Microsoft Graph, Delegated permissions
  • add auth for [ User.Read | Files.ReadWrite.All | offline_access ] (the last is necessary to perform a correct token refresh)
On Nextcloud
  • Copy Client Id and client secret then Go to Nextcloud /settings/user/externalstorages and Add a new storage OneDrive
  • Fill the details Client Id, Client Secrets from you onedrive App page
  • Click Grant Access and then you will be redirected for OAuth login
  • After completing the OAuth you will be redirect back to Storage Section and you should see green mark along your storage configuration

References:

files_external_onedrive's People

Contributors

ddt3 avatar feurigel avatar hevelius avatar hiro5id avatar l0ric0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.