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

            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.