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

Update badges assertion to use the new spec

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 2.6
    • 2.5.1, 2.6
    • Badges
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-40572_master
    • Hide

      Part 1

      Run unit tests and make sure they are all passing.

      Part 2

      To test, you need at least one badge issued from Moodle, and your web site to be accessible online (because we are testing hosted assertions).

      1. From my badges page go to your issued badge. URL should be in form of badges/badge.php?hash=XXXXXXXXXXX

      2. Manually change URL to look like badges/assertion.php?b=XXXXXXXXX where XXXXXXXXX is the issued badge unique hash. If you changed it correctly, you should see a JSON string that starts with '{"uid":"XXXXXXXXX"'...

      3. Copy either this entire JSON string or just assertion URL. It works both ways.

      4. Go to http://validator.openbadges.org

      5. Paste what you copied into a textarea and click "Check Validity".

      6. After validation is done, you should see a message "Valid", "Spec Version: 1.0.0" similar to attached image

      Show
      Part 1 Run unit tests and make sure they are all passing. Part 2 To test, you need at least one badge issued from Moodle, and your web site to be accessible online (because we are testing hosted assertions). 1. From my badges page go to your issued badge. URL should be in form of badges/badge.php?hash=XXXXXXXXXXX 2. Manually change URL to look like badges/assertion.php?b=XXXXXXXXX where XXXXXXXXX is the issued badge unique hash. If you changed it correctly, you should see a JSON string that starts with ' {"uid":"XXXXXXXXX"' ... 3. Copy either this entire JSON string or just assertion URL. It works both ways. 4. Go to http://validator.openbadges.org 5. Paste what you copied into a textarea and click "Check Validity". 6. After validation is done, you should see a message "Valid", "Spec Version: 1.0.0" similar to attached image

    Description

      Need to update the code to use the new assertion specification https://github.com/mozilla/openbadges/wiki/Assertions

      Attachments

        Issue Links

          Activity

            People

              ybozhko Yuliya Bozhko
              ybozhko Yuliya Bozhko
              Dan Poltawski Dan Poltawski
              Sam Hemelryk Sam Hemelryk
              Jérôme Mouneyrac Jérôme Mouneyrac
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                18/Nov/13