Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Box.net repository.

Box.net repository

From MoodleDocs

IMPORTANT: Admins of sites currently using the Box.net repository are advised to upgrade as soon as possible and run the Box.net-alias-to-copy-conversion tool. See Box.net APIv1 migration for details.

The Box.net repository enables users to copy files from Box.net into Moodle. (Previously a shortcut/alias could be made to a file stored in Box.net, however with Box.net API v2 this is unfortunately no longer possible.)

Enabling the Box.net repository

To use the Box.net repository, your Moodle site must use HTTPS. An admin can then enable the Box.net repository as follows:

  1. Obtain a client ID and secret from Box.net (see below)
  2. Go to Administration > Site administration > Plugins > Repositories > Manage Repositories
  3. Activate the Box.net repository by selecting 'Enabled and visible' in the dropdown menu
  4. Configure each repository by entering the client ID and secret. Make sure you don't include any white space in the text boxes!
  5. Save changes

Obtaining a Box.net client ID and secret

  1. Go to https://app.box.com and create an account or log in
  2. Go to https://app.box.com/developers/services and click the link 'Create new application'
  3. Enter an application name and click the 'Content API' button
  4. Once the application is created, click the 'Edit this application' button
  5. On the Edit a Box Application page, scroll down to the section 'OAuth2 parameters' and copy the client ID and secret

Note: You can use the same client ID and secret for the Box.net repository and Box.net portfolio.

Capabilities

There is just one capability, View box.net repository, which is allowed for the default authenticated user role.