Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64243

Nextcloud should be able to serve "offline" files like OneDrive or Google Docs integration

XMLWordPrintable

    • MOODLE_36_STABLE
    • MOODLE_37_STABLE
    • Hide
      1. Configure Nextcloud as an OAuth2 issuer according to https://docs.moodle.org/en/OAuth_2_Nextcloud_service. (Consider using a "Nextcloud instant trial" from https://demo.nextcloud.com as a Nextcloud server or running a nextcloud docker container locally, and using ngrok to secure the connection)
      2. Create a Nextcloud repository instance in Moodle, using the oauth provider you just set up.
      3. Create the first user in next cloud. Name them 'Adam'.
      4. Create another user in Nextcloud named 'Bob'.
      5. Sign out and log in as Bob.
      6. Now, in Moodle, via the oauth providers page, connect a system account to Nextcloud (connecting to the Bob account when prompted to do so).
      7. In Nextcloud, log out.
      8. In a Moodle course (as a teacher), create a file resource using a file from Nextcloud (in the process, log in to Nextcloud as Adam). Be sure to select "access controlled link" during upload!
      9. Create another module (anything) in the same section as the file you just created (this will just be used to navigate to a page where we can see the link we need to edit)
      10. Go to nextcloud and log out.
      11. Log in as a student in the course and open the other module.
      12. Using the next / previous module links at the bottom , move to the resource. You will see "Click FILENAME link to view the file."
      13. Copy the link address for the file
      14. Click the link and confirm you see a 'Log in to your ... account' button. Don't click it. This just confirms you are not logged in to nextcloud.
      15. Paste the link you copied into a new tab, and append '?offline=1' to the address.
      16. Hit enter and Verify the file is downloaded.
      Show
      Configure Nextcloud as an OAuth2 issuer according to https://docs.moodle.org/en/OAuth_2_Nextcloud_service . (Consider using a "Nextcloud instant trial" from https://demo.nextcloud.com as a Nextcloud server or running a nextcloud docker container locally, and using ngrok to secure the connection) Create a Nextcloud repository instance in Moodle, using the oauth provider you just set up. Create the first user in next cloud. Name them 'Adam'. Create another user in Nextcloud named 'Bob'. Sign out and log in as Bob. Now, in Moodle, via the oauth providers page, connect a system account to Nextcloud (connecting to the Bob account when prompted to do so). In Nextcloud, log out. In a Moodle course (as a teacher), create a file resource using a file from Nextcloud (in the process, log in to Nextcloud as Adam). Be sure to select "access controlled link" during upload ! Create another module (anything) in the same section as the file you just created (this will just be used to navigate to a page where we can see the link we need to edit) Go to nextcloud and log out. Log in as a student in the course and open the other module. Using the next / previous module links at the bottom , move to the resource. You will see "Click FILENAME link to view the file." Copy the link address for the file Click the link and confirm you see a 'Log in to your ... account' button. Don't click it. This just confirms you are not logged in to nextcloud. Paste the link you copied into a new tab, and append '?offline=1' to the address. Hit enter and Verify the file is downloaded.

      This is a follow up of: MDL-64228

      Nextcloud should be able to serve offline files (a copy for offline of the document) even if the client is not authenticated.

      This is currently done by OneDrive or Google Docs through the system OAuth client

            jan.dagefoerde Jan Dageförde
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Jake Dallimore Jake Dallimore
            Mihail Geshoski Mihail Geshoski
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.