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

Cant use JWKS URL in Definition external Tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.10.1
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Cant use JWKS URL in Definition external Tool

      USED moodle Version
      ===============================================================================

      $version = 2020110900.00; // 20201109 = branching date YYYYMMDD - do not modify!
      // RR = release increments - 00 in DEV branches.
      // .XX = incremental changes.
      $release = '3.10 (Build: 20201109)';// Human-friendly version name
      $branch = '310'; // This version's branch.
      $maturity = MATURITY_STABLE; // This version's maturity level.

      ========================================================================

      RSA Key in external Tool Definition

      ----BEGIN PUBLIC KEY----
      MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiz5M/i9X1bKMcjZqfu0s
      kUntTd7u2OZM+m/2qSeGQCIup+BDLtJdn/aDkxa4iNSqJhIA2ZLLH4ht66ZerNJn
      QmacHg3/zkiLIPbW95PmBXpDg2UCKDbU2hP01lnbtay5R0VsB2h82LR8pE12l2rU
      GPGTFIuQRIMlshsVVURMgdk+MsGHhN/As64wVOXsBqOIYLp5T29wqKPvYIia0H3A
      V7TA2/tbq7l7MD+sM4lwM070FXB7YekXIwdhsvyaJAcEsy83/Ip8ZzXPjvuhQnzG
      xS6nyxN2sXPSLpKQiBZeLB6na9GXz/xFEJNxMC45KAcH+BCD/quXMWUigJ2Dr+Ld
      MwIDAQAB
      ----END PUBLIC KEY----

      -> W O R K S

      BUT using JWKS URL does N O T W O R K (see Image)

      curl http://localhost:7080/lti13/platform/pilot1/jwks | jq "."
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      100 430 100 430 0 0 13437 0 -::- -::- -::- 13437
      {
      "keys": [

      { "kty": "RSA", "e": "AQAB", "use": "sig", "kid": "pilot1-20210125-134949649", "n": "iz5M_i9X1bKMcjZqfu0skUntTd7u2OZM-m_2qSeGQCIup-BDLtJdn_aDkxa4iNSqJhIA2ZLLH4ht66ZerNJnQmacHg3_zkiLIPbW95PmBXpDg2UCKDbU2hP01lnbtay5R0VsB2h82LR8pE12l2rUGPGTFIuQRIMlshsVVURMgdk-MsGHhN_As64wVOXsBqOIYLp5T29wqKPvYIia0H3AV7TA2_tbq7l7MD-sM4lwM070FXB7YekXIwdhsvyaJAcEsy83_Ip8ZzXPjvuhQnzGxS6nyxN2sXPSLpKQiBZeLB6na9GXz_xFEJNxMC45KAcH-BCD_quXMWUigJ2Dr-LdMw" }

      ]
      }

      Transformed with
      https://8gwifi.org/jwkconvertfunctions.jsp

      result

      from JWKS
      ----BEGIN PUBLIC KEY----
      MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiz5M/i9X1bKMcjZqfu0s
      kUntTd7u2OZM+m/2qSeGQCIup+BDLtJdn/aDkxa4iNSqJhIA2ZLLH4ht66ZerNJn
      QmacHg3/zkiLIPbW95PmBXpDg2UCKDbU2hP01lnbtay5R0VsB2h82LR8pE12l2rU
      GPGTFIuQRIMlshsVVURMgdk+MsGHhN/As64wVOXsBqOIYLp5T29wqKPvYIia0H3A
      V7TA2/tbq7l7MD+sM4lwM070FXB7YekXIwdhsvyaJAcEsy83/Ip8ZzXPjvuhQnzG
      xS6nyxN2sXPSLpKQiBZeLB6na9GXz/xFEJNxMC45KAcH+BCD/quXMWUigJ2Dr+Ld
      MwIDAQAB
      ----END PUBLIC KEY----

       
      image shows error message after returning from deep Linking with JWKS URL

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alexander.becker Alexander Becker
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: