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

Update user profile fields according to info send by OAuth2 authorization server (Backport of MDL-61767)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.5.4, 3.6
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide
      1. Setup a Google OAuth2 service
        1. Untick the "Require email verification"
      2. Connect the system account
      3. Go to Site administration / Plugins / Authentication / Manage authentication.
      4. Enable the oAuth2 authentication mechanism
      5. Navigate to Site administration -> Users -> Browse
      6. Edit an existing user
      7. Set your Gmail account's e-mail address as the user's e-mail address
      8. Log out
      9. Log in again, with the account using oAuth2
        1. Confirm that the user's name and picture now reflect those on your account
      10. Log out
      11. Log in via oAuth2 again using a different Gmail account
        1. Confirm that the account was created
        2. Confirm that the details of that account were also pulled in
      Show
      Setup a Google OAuth2 service Untick the "Require email verification" Connect the system account Go to Site administration / Plugins / Authentication / Manage authentication. Enable the oAuth2 authentication mechanism Navigate to Site administration -> Users -> Browse Edit an existing user Set your Gmail account's e-mail address as the user's e-mail address Log out Log in again, with the account using oAuth2 Confirm that the user's name and picture now reflect those on your account Log out Log in via oAuth2 again using a different Gmail account Confirm that the account was created Confirm that the details of that account were also pulled in
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:

      Description

      In order to fix MDL-61789 the patch from MDL-61767 is required.

      I also think MDL-61767 should have been classified as a bug as it handles saving data obtained from the Oauth2 server to the profile fields, which should have been included to begin with.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: