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

Dynamic registration should return site name and logo

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-77933-401
    • MDL-77933-master
    • Hide

      Prerequisites

      1. You need two Moodle sites (localhost is fine) - one called 'platform' and one called 'tool'
      2. In the tool site admin settings:
        • Enable enrol_lti and auth_lti plugins
        • Enable "Allow frame embedding"
      3. In BOTH sites:
        • Go to "Administration > Security > HTTP security" and clear all values from the 'curlsecurityblockedhosts' admin setting and save. (to permit localhost-to-localhost calls)

      Testing

      1. Login as an admin in the tool site
      2. Check the value of the site fullname (this will be verified later, so just remember it
      3. Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration
      4. Click to create a new registration
      5. Name the registration "platform site" and continue
      6. You'll see a dynamic registration URL. Click the "Copy to clipboard" icon to copy it
      7. Now, in another browser tab, login as the admin user to the platform site
      8. Go to to Admin > Plugins > Activities > External tool > Manage tools
      9. Paste the URL value into the "Tool URL" field
      10. Click "Add LTI Advantage"
      11. Verify:
        • You see a tool card created below
        • The name of the tool is the site fullname for the tool site
        • The icon is a puzzle piece (the default used by the platform when the icon URL isn't sent during registration).
      12. Delete this tool card.
      13. Go back to the tool site in the other tab.
      14. Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration
      15. Delete the registration for "platform site"
      16. Now, go to "Site admin > Appearance > Logos"
      17. Upload a compact logo to the site
      18. Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration
      19. Click to create a new registration
      20. Name the registration "platform site with logo" and continue
      21. You'll see a dynamic registration URL. Click the "Copy to clipboard" icon to copy it
      22. Now go back to the platform site browser tab
      23. Paste the URL value into the "Tool URL" field
      24. Click "Add LTI Advantage"
      25. Verify:
        • You see a tool card created below
        • The name of the tool is the site fullname for the tool site
        • The icon is the icon you set in the tool site above, and NOT the puzzle piece
      Show
      Prerequisites You need two Moodle sites (localhost is fine) - one called 'platform' and one called 'tool' In the tool site admin settings: Enable enrol_lti and auth_lti plugins Enable "Allow frame embedding" In BOTH sites: Go to "Administration > Security > HTTP security" and clear all values from the 'curlsecurityblockedhosts' admin setting and save. (to permit localhost-to-localhost calls) Testing Login as an admin in the tool site Check the value of the site fullname (this will be verified later, so just remember it Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration Click to create a new registration Name the registration "platform site" and continue You'll see a dynamic registration URL. Click the "Copy to clipboard" icon to copy it Now, in another browser tab, login as the admin user to the platform site Go to to Admin > Plugins > Activities > External tool > Manage tools Paste the URL value into the "Tool URL" field Click "Add LTI Advantage" Verify : You see a tool card created below The name of the tool is the site fullname for the tool site The icon is a puzzle piece (the default used by the platform when the icon URL isn't sent during registration). Delete this tool card. Go back to the tool site in the other tab. Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration Delete the registration for "platform site" Now, go to "Site admin > Appearance > Logos" Upload a compact logo to the site Go to Admin > Plugins > Enrolment plugins > Publish as LTI tool > Tool registration Click to create a new registration Name the registration "platform site with logo" and continue You'll see a dynamic registration URL. Click the "Copy to clipboard" icon to copy it Now go back to the platform site browser tab Paste the URL value into the "Tool URL" field Click "Add LTI Advantage" Verify : You see a tool card created below The name of the tool is the site fullname for the tool site The icon is the icon you set in the tool site above, and NOT the puzzle piece

      https://github.com/moodle/moodle/blob/75328ec1a800672dadfdb14f12d0b8a22abdf4c4/enrol/lti/register.php#L116-L118

      Right now this returns the "Moodle" string, and Moodle generic logo.

      This should return the site's name and site logo instead. Consumers don't really want to see that another tool/content provider is running Moodle; they just want to see the name of that organization/institution and its logo.

      Workaround: Consumers change this in their tool settings after dynamic registration has completed.

        1. MDL-77933.png
          MDL-77933.png
          213 kB
        2. step_11.png
          step_11.png
          54 kB
        3. step_25.png
          step_25.png
          64 kB

            jaked Jake Dallimore
            jaked Jake Dallimore
            Huong Nguyen Huong Nguyen
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 23 minutes
                3h 23m

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