Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.1.3, 3.2
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MDL-57035-master -
Description
While testing MDLQA-10208, I noticed that I cannot use the the OneDrive repository. What I did are as follows:
- Expose a Moodle site on the internet (e.g. via ngrok)
./ngrok http 80 --bind-tls=true --region=au
And copy the forwarding HTTPS URL.
- Set the following configurations:
$CFG->wwwroot = 'https://[NGROK_DOMAIN]/[MOODLE_URL]';
$CFG->sslproxy = true;
- Go to Site administration / Plugins / Repositories / Manage repositories
- Set "Microsoft OneDrive" as "Enabled and visible"
- On the "Configure Microsoft OneDrive" page, copy the OAuth2 callback URL defined under "As part of the registration process, you will need to enter the following URL as 'Redirect domain':".
- Click on the link "with Microsoft"
- Sign in with your Microsoft account and register your site.
- Give a name for your app (e.g. Moodle OneDrive Repo).
- Under "Application Secrets", click "Generate New Password". Copy/take note of this password for later use.
- Under "Platforms", click "Add Platform" and click on "Web"
- Paste the OAuth2 callback URL into the "Redirect URIs" field.
- Click "Save".
- Go back to the "Configure Microsoft OneDrive" window.
- Enter a Repository plugin name. (e.g. Moodle OneDrive Repo).
- Copy and paste this generated password into the "Secret" field of the "Configure Microsoft OneDrive" page.
- Copy the "Application Id" and paste it into the "Client ID" field of the "Configure Microsoft OneDrive" page.
- Click "Save"
- Go to "Site administration / Users / Permissions / Check system permissions".
- Make sure that the admin user has the "View OneDrive" (repository/skydrive:view) capability.
- Go to your "Private files" page.
- Click on the "Add..." button on the file picker.
- Click on the OneDrive repository.
- Click "Login to your account"
- Login to your OneDrive account and give permission to your moodle site.
- Expected
- The OneDrive login dialogue will close and you will be able to see your OneDrive files.
- Actual
- The OneDrive login dialogue closes but the "Login to your account" button is still displayed and you cannot view your OneDrive files.
Attachments
Issue Links
- Discovered while testing
-
MDLQA-10208 CLONE - A user can retrieve files from MS OneDrive
-
- Passed
-