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

Discovery not working for Microsoft OAuth 2 service.

XMLWordPrintable

    • 6
    • Team Hedgehogs 2025 Sprint 2.2

      STEPS TO REPLICATE

      1. Create a Microsoft Oauth2 single tenant service following the directions here https://docs.moodle.org/404/en/OAuth_2_Microsoft_service

       

      OBSERVED BEHAVIOR

      Once the service has been created notice that the "Discovery" column is showing no connection "-". If you navigate to the "Configure Endpoints" setting, you will not see the "discovery-endpoint" listed. 

       Manually adding the "discovery-endpoint" also does not work, as all this does is place an "X" in the discovery column and does not connect. 

       

      EXPECTED BEHAVIOR

      Adding the "Service base URL" during the initial Oauth2 Setup,  should have triggered the service to add the "discovery-endpoint" and connected successfully.

      Notice that if you create a "Custom" Oauth 2 Service and copy the same settings from the Microsoft service created, you will see that the discovery-endpoint is created automatically, and the connection is successful.

       

       

      The current workaround is for clients to create a Custom service in Moodle using the Microsoft Oauth2 setup documentation. 

       

       

        1. MDLQA-20111.png
          MDLQA-20111.png
          28 kB
        2. MDL-84432 verify 4.png
          MDL-84432 verify 4.png
          40 kB
        3. MDL-84432 verify 3.png
          MDL-84432 verify 3.png
          80 kB
        4. MDL-84432 verify 2.png
          MDL-84432 verify 2.png
          83 kB
        5. MDL-84432 verify 1.png
          MDL-84432 verify 1.png
          8 kB
        6. image-2025-02-05-14-06-26-149.png
          image-2025-02-05-14-06-26-149.png
          66 kB
        7. image-2025-02-05-14-06-14-324.png
          image-2025-02-05-14-06-14-324.png
          73 kB
        8. image-2025-02-05-14-06-04-907.png
          image-2025-02-05-14-06-04-907.png
          115 kB
        9. image-2025-02-05-14-05-49-638.png
          image-2025-02-05-14-05-49-638.png
          74 kB
        10. image-2025-02-05-14-05-36-762.png
          image-2025-02-05-14-05-36-762.png
          77 kB
        11. image-2025-02-05-14-05-17-385.png
          image-2025-02-05-14-05-17-385.png
          80 kB
        12. comparison.png
          comparison.png
          309 kB

            huongn@moodle.com Huong Nguyen
            jphege83 John Hege
            David Woloszyn David Woloszyn
            Shamim Rezaie Shamim Rezaie
            Stevani Andolo Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours, 15 minutes
                4d 2h 15m

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