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

OAuth2 does not pass in all user mapped settings into new account

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:

      Description

      I have a value I'm that I set up a custom user mapped setting for in OAuth2 to map to the internal field idnumber.

      Looking at the code \moodle\auth\oauth2\classes\api.php, send_confirm_account_email(), not all of the possible internal fields are being mapped to the user object.  I would expect the following to be included in the list of values:

      $user->idnumber = $userinfo['idnumber'];

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            invisibleotis Eric Bram
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

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