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

Switch Google Plugins to use OAuth 2.0 as authsub is deprecated and will be disabled in future

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.3
    • 2.1.2
    • Repositories
    • LAMP
    • MOODLE_21_STABLE
    • MOODLE_23_STABLE
    • Hide

      Upgrade Test

      Prerequisites:

      1. You need your moodle configured to send email.

      Setup

      1. You need an admin with a valid email address (please verify that email is being sent to the admin before testing - e.g. send a message to the admin)
      2. You need your Moodle to be at a state before this is integrated (either Moodle master or a stable branch)
      3. Enable the google docs and Picasa repository plugins in Admin > Plugins > Repositories
      4. Enable portfolios in Admin > Advanced Features
      5. Enable the google docs and Picasa Portfolio plugins in Admin > Plugins > Portfolios

      Upgrade to lastest integration

      1. Verify that the google docs repository plugin is now disabled and not in the list of repositories
      2. Verify that the admin has received an email informing them that the google docs repo plugin has been disabled
      3. Verify that the picasa repository plugin is now disabled and not in the list of reposotiroies
      4. Verify that the admin has received an email informing them that the picasa repo plugin has been disabled
      5. Verify that the admin received an email about the google docs portfolio plugin needing configuration
      6. Verify that the admin received an email about the picasa portfolio plugin needing configuration
      7. Go to the list of portfolio plugins and verify that both Picasa and google docs are disabled with a help button suggesting they need configuration

      Functional Test

      Prerequisites:

      1. You will need a google account to test this with.

      Setup

      1. You need to generate a google OAuth 2.0 client for your Moodle.
        1. Note that you can't use a .local domain name as google wont allow it - just fake a real domain name using a hosts file. Ask DanP for further help.
        2. Follow the instructions in http://docs.moodle.org/23/Google_OAuth2_Setup

      Google Docs Repo

      1. Enable the google docs repository
      2. Configure the OAuth Settings with your registered google details
      3. In a forum:
      4. Attempt to use the repository plugin to attach a file to a forum post.
      5. Logout of moodle and then log back in again - verify that you have to click the 'login' button to browse your google docs files and are not automatically logged into google docs
      6. Logout of google and moodle, log back into moodle. Verify that you have to log into google to allow access to google docs
      7. Repeat the forum post with
        1. A document
        2. A spreadsheet
        3. A presentation
        4. An image
        5. A zip file
        6. Another file type
      8. Search for any document verify that search results are returned
      9. Open each of the attachments from Moodle and verify that they are complete and not corrupted

      Picasa Repo

      1. Enable the google docs repository
      2. Configure the OAuth Settings with your registered google details
      3. In a forum:
      4. Attempt to use the repository plugin to attach an image to a forum post.
      5. Logout of moodle and then log back in again - verify that you have to click the 'login' button to browse your picasa images and are not automatically logged into picasa
      6. Logout of google and moodle, log back into moodle. Verify that you have to log into google to allow access to picasa
      7. Search for an image verify that search results are returned
      8. Open each of the images frm Moodle and verify that they are complete and not corrupted

      Google Docs Portfolio

      1. Enable the portfolios feature
      2. Enable the google docs portfolio
      3. Configure the OAuth Settings with your registered google details
      4. In a forum create a forum post with some html only
      5. Attempt to export the forum post to your portfolio
      6. Verify that you are requested to authorize moodle access to google on first portfolio export
      7. Verify that the html of the forum post is uploaded in tact to google docs (note that the html is basic and styling is lost)
      8. Logout of google and moodle, log back into moodle. Verify that you have to log into google to export your portfolio allow access to googledocs

      Picasa Portfolio

      1. Enable the portfolios feature
      2. Enable the picasa portfolio
      3. Configure the OAuth Settings with your registered google details
      4. In a forum create a forum post with some html, attach some images
      5. Attempt to export the import you attached to your picasa portfolio
      6. Verify that you are requested to authorize moodle access to google on first portfolio export
      7. Verify that the image is uploaded to your picasa account succesfully and the image is not corrupted (it will appear in your drop box)
      8. Logout of google and moodle, log back into moodle. Verify that you have to log into google to export your portfolio and allow access to picasa
      Show
      Upgrade Test Prerequisites: You need your moodle configured to send email. Setup You need an admin with a valid email address (please verify that email is being sent to the admin before testing - e.g. send a message to the admin) You need your Moodle to be at a state before this is integrated (either Moodle master or a stable branch) Enable the google docs and Picasa repository plugins in Admin > Plugins > Repositories Enable portfolios in Admin > Advanced Features Enable the google docs and Picasa Portfolio plugins in Admin > Plugins > Portfolios Upgrade to lastest integration Verify that the google docs repository plugin is now disabled and not in the list of repositories Verify that the admin has received an email informing them that the google docs repo plugin has been disabled Verify that the picasa repository plugin is now disabled and not in the list of reposotiroies Verify that the admin has received an email informing them that the picasa repo plugin has been disabled Verify that the admin received an email about the google docs portfolio plugin needing configuration Verify that the admin received an email about the picasa portfolio plugin needing configuration Go to the list of portfolio plugins and verify that both Picasa and google docs are disabled with a help button suggesting they need configuration Functional Test Prerequisites: You will need a google account to test this with. Setup You need to generate a google OAuth 2.0 client for your Moodle. Note that you can't use a .local domain name as google wont allow it - just fake a real domain name using a hosts file. Ask DanP for further help. Follow the instructions in http://docs.moodle.org/23/Google_OAuth2_Setup Google Docs Repo Enable the google docs repository Configure the OAuth Settings with your registered google details In a forum: Attempt to use the repository plugin to attach a file to a forum post. Logout of moodle and then log back in again - verify that you have to click the 'login' button to browse your google docs files and are not automatically logged into google docs Logout of google and moodle, log back into moodle. Verify that you have to log into google to allow access to google docs Repeat the forum post with A document A spreadsheet A presentation An image A zip file Another file type Search for any document verify that search results are returned Open each of the attachments from Moodle and verify that they are complete and not corrupted Picasa Repo Enable the google docs repository Configure the OAuth Settings with your registered google details In a forum: Attempt to use the repository plugin to attach an image to a forum post. Logout of moodle and then log back in again - verify that you have to click the 'login' button to browse your picasa images and are not automatically logged into picasa Logout of google and moodle, log back into moodle. Verify that you have to log into google to allow access to picasa Search for an image verify that search results are returned Open each of the images frm Moodle and verify that they are complete and not corrupted Google Docs Portfolio Enable the portfolios feature Enable the google docs portfolio Configure the OAuth Settings with your registered google details In a forum create a forum post with some html only Attempt to export the forum post to your portfolio Verify that you are requested to authorize moodle access to google on first portfolio export Verify that the html of the forum post is uploaded in tact to google docs (note that the html is basic and styling is lost) Logout of google and moodle, log back into moodle. Verify that you have to log into google to export your portfolio allow access to googledocs Picasa Portfolio Enable the portfolios feature Enable the picasa portfolio Configure the OAuth Settings with your registered google details In a forum create a forum post with some html, attach some images Attempt to export the import you attached to your picasa portfolio Verify that you are requested to authorize moodle access to google on first portfolio export Verify that the image is uploaded to your picasa account succesfully and the image is not corrupted (it will appear in your drop box) Logout of google and moodle, log back into moodle. Verify that you have to log into google to export your portfolio and allow access to picasa

      Support for oauth use with google repository so users does not have to grant access every time.

      There is some discussion about this at http://moodle.org/mod/forum/discuss.php?d=182435.

            poltawski Dan Poltawski
            felicia Felicia Berryman
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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