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

OAuth2 configuration reset each time identity issuer settings are saved

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 3.7.4, 3.8.1, 3.9
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
    • Workaround:
      Hide

      Periodically, manually go and check the field mapping list to see if additional fields have disappeared. If they have, you will need to add them back in and add back in any custom endpoints you might have also added.

      I have not fully tested this workaround.

      Show
      Periodically, manually go and check the field mapping list to see if additional fields have disappeared. If they have, you will need to add them back in and add back in any custom endpoints you might have also added. I have not fully tested this workaround.
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      I created a new custom identity issuer in Oauth2. To my pleasant surprise, after just completing the settings in the Edit Identity Issuer Gear page, it managed to automatically populate most of the endpoints and field mappings. That is great and a real time-saver.

      However, I needed to add a few extra endpoints and additional field mappings. Saved them. Great! it all worked.

      However, if I go back and edit the identity issuer, the moment I save, it resets all of the settings in the Endpoints and Field Mappings pages. Any custom fields I added just vanish!

      This is new behaviour. In previous instances of Moodle that I installed just last summer (Moodle 3.6 and 3.7), that was not the case. The fields were not populated automatically and the field mappings had to be created manually too.

      So it is great that things are now automatically populated, but once it does that, it should not reset everything each time I save a change (like the Logo URL, or even make no changes and just save).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              michael-milette Michael Milette
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: