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

Update badges assertion to use the new spec

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1, 2.6
    • Fix Version/s: 2.6
    • Component/s: Badges
    • Labels:
    • Testing Instructions:
      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 !validator_result.png|thumbnail!

      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 !validator_result.png|thumbnail!
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40572_master

      Description

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    18/Nov/13