Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 2.16 KB

BROWSE_EVERYTHING.md

File metadata and controls

37 lines (32 loc) · 2.16 KB

Browse Everything

Using Google Drive as a storage provider

Registering your Figgy

Enabling the Google Drive API for your Figgy

  • From the "Dashboard" interface, click "Enable APIs and Services"
  • Within "Search for APIs & Services" enter for "Google Drive", and select the "Google Drive API"
  • Click the "Enable" button
  • From the "Google Drive API" management interface, select "Create credentials"
  • "Which API are you using?" should contain the value "Google Drive API"
  • "Where will you be calling the API from?" should contain the value "Web server (e. g. node.js, Tomcat)"
  • "What data will you be accessing?" should contain "User data"
  • Select "What credentials do I need?"

Creating an OAuth 2 client ID

  • Provide the "name" for your Figgy
  • Select "Create client ID"
  • Provide the e-mail address for the repository administrator
  • Provide the product name for users granting your Figgy access to Google Drive accounts
  • Provide the authorized redirect URIs
    • http://localhost:3000/browse/connect will be sufficient for testing using an instance on the localhost
    • Otherwise, please offer some URI of the structure http://[YOUR_FIGGY_URL]/browse/connect
  • You do not need to download the credentials

Retrieving the OAuth client secret

  • From the "Credentials" interface, select the "Edit OAuth client" button (it features a pencil icon to the right of the name of your Figgy)
  • Copy the "Client ID" and "Client secret" into the config/browse_everything_providers.yml configuration file
    • Should your client secret every be compromised, please note that one can "Reset Secret" at the top of this interface

Uploading Files

  • After restarting your instance of Figgy, one should be able to upload files from Google Drive within the File Manager for resources in the repository