Box repository

From MoodleDocs
Revision as of 10:12, 14 November 2022 by Mary Cooch (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Note: The Box repository has been removed from new installations of Moodle 4.x.

The code for theBox repository is currently available from the Plugins directory.


The Box repository enables users to copy files from Box into Moodle.

In order to use the Box repository, your Moodle site must use HTTPS. In addition, an administrator must obtain a Box client ID and secret. The client ID and secret can then be used to configure all Box plugins.

Obtaining a Box 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. Select 'Custom app' and click 'Next'
  4. Select 'Standard OAuth 2.0 (User Authentication)' and click 'Next'
  5. Click 'View Your App'
  6. Enter an application name
  7. Edit 'Redirect URI' on the OAuth 2.0 Redirect URI section and write http://yourmoodleserver/admin/oauth2callback.php
  8. Click 'Save Changes' button
  9. On to the section 'OAuth 2.0 Credentials' make a note of the client ID and secret
  10. The client ID and secret can then be used to configure the Box repository and Box portfolio.

The client ID and secret can then be used to configure the Box repository and Box portfolio.

Enabling the Box repository

  1. Go to Administration > Site administration > Plugins > Repositories > Manage Repositories
  2. Reactivate the Box.net repository by selecting 'Enabled and visible' in the dropdown menu
  3. Configure the repository plugin by entering the Box client ID and secret. Make sure you don't include any white space in the text boxes!
  4. Save changes

Enabling the Box portfolio

  1. Go to Administration > Site administration > Plugins > Portfolios > Manage Portfolios
  2. Reactivate the Box.net portfolio by selecting 'Enabled and visible' in the dropdown menu
  3. Configure the portfolio plugin by entering the Box client ID and secret
  4. Save changes


Capabilities

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