Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18925 Moodle 4.5 QA
  3. MDLQA-19227

CLONE - An admin can enable users to authenticate with their Google account

XMLWordPrintable

      This test requires a Google client ID and secret and email address for use in testing.

      1. Log in as an admin and set up and configure the OAuth 2 Google service with a client ID and secret, as described in the documentation OAuth2 Services and OAuth 2 Google service.
      2. Give this service a name "Google for login" and the "Name displayed on the login page " just "Google". Set "This service will be used" to "Login page only".
      3. Configure another Google service with a name "Google Drive service". (You can set any client ID and secret, as they will not be used in this test). Set "This service will be used" to "Internal services only".
      4. Return to the services list page and make sure both services appear in the list and they appear as enabled for login and services respectively.
      5. Enable the OAuth 2 authentication plugin.
      6. In the manage authentication common settings, enable 'Prevent account creation when authenticating' (authpreventaccountcreation).
      7. Log out and go to the login page. Make sure you can only see one OAuth2 button and it says "Google".
      8. Try to log in with a Google account using the "Log in using your account on Google" button on the login page.
      9. Check that you can't.
      10. Log in as admin and disable 'Prevent account creation when authenticating' (authpreventaccountcreation).
      11. Log out again and try to log in with a Google account again.
      12. Check that you see a message saying that a confirmation email has been sent.
      13. Check you email and follow the link in the confirmation email.
      14. Check that an account is created with a picture and profile info from Google.
      15. Log in as admin and delete the account that you just created.
      16. Log in with another account which has no profile picture set.
      17. Go to your preferences page and click the link "Linked logins".
      18. Link a Google login to your Moodle account.
      19. Log out and verify you can log in to your Moodle account using your Google login.
      20. Check that the profile picture is updated to the one from Google.
      21. Change your profile picture to something else.
      22. Log out and log in again with the Google account.
      23. Check that your profile picture hasn't changed.
      24. Log in as admin and go to Site administration>Plugins>Repositories>Manage repositories. Enable the "Google Drive" plugin. In the plugin settings make sure that you only see "Google Driver service" in the "OAuth 2 service" dropdown. (You do not need to test the actual repository functionality here, as there is another QA test for it.)

        1. step01-02.png
          step01-02.png
          49 kB
        2. step03.png
          step03.png
          52 kB
        3. step04.png
          step04.png
          39 kB
        4. step05.png
          step05.png
          42 kB
        5. step06.png
          step06.png
          45 kB
        6. step07.png
          step07.png
          34 kB
        7. step08-09.png
          step08-09.png
          35 kB
        8. step10.png
          step10.png
          44 kB
        9. step11-12.png
          step11-12.png
          18 kB
        10. step13.png
          step13.png
          17 kB
        11. step14.png
          step14.png
          56 kB
        12. step15.png
          step15.png
          10 kB
        13. step16.png
          step16.png
          43 kB
        14. step17.png
          step17.png
          18 kB
        15. step18.png
          step18.png
          24 kB
        16. step19-20.png
          step19-20.png
          20 kB
        17. step21.png
          step21.png
          41 kB
        18. step22-23.png
          step22-23.png
          20 kB
        19. step24.png
          step24.png
          46 kB

            ruseler Adriano Ruseler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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