Box repository
- Moodle 1.9–5.1
- 中文 95%
- 更新 2022-03-24
The Box repository enables users to copy files from Box into Moodle.
Note : The Box repository has been removed from new installations of Moodle 4.0. The code for this filter is currently available in the Plugins directory.
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
Go to https://app.box.com and create an account or log in
Go to https://app.box.com/developers/services and click the link ‘Create new application’
Select ‘Custom app’ and click ‘Next’
Select ‘Standard OAuth 2.0 (User Authentication)’ and click ‘Next’
Click ‘View Your App’
Enter an application name
Edit ‘Redirect URI’ on the OAuth 2.0 Redirect URI section and write http://yourmoodleserver/admin/oauth2callback.php
Click ‘Save Changes’ button
On to the section ‘OAuth 2.0 Credentials’ make a note of the client ID and secret
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
Go to Administration > Site administration > Plugins > Repositories > Manage Repositories
Reactivate the Box.net repository by selecting ‘Enabled and visible’ in the dropdown menu
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!
Save changes