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

Support revoking awarded badges

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course and enrol a couple of users
      2. Add a badge to the course
        • Course administration > badges > manage badges
      3. Add criteria to the badge and select "manual issued by role" and choose all of the roles
      4. Enable access to the badge
      5. Go to the recipients tab and click award badge
      6. Choose a role and award a student the badge
      7. Log in as that student and view your course badges and confirm there is an issued date for you
        • Navigation > Courses > [your course] > badges > course badges
      8. Go to the student Profile and add the badge to your backpack
        • User Preferences > Backpack settings > Sign into backpack.openbadges
        • User Preferences > Manage badges > Click "Add to backpack" icon under the new badge.
        • Click Log in or Sign up as needed, follow instructions and Accept the badge into your backpack.
      9. Right click and copy path of the badge (should look like [wwwroot]/badges/badge.php?hash=[uniquehashid])
        • In another tab navigate to http://validator.openbadges.org/ and paste the copied link into the box. Find the hash value
        • and replace the "badge.php?hash=" in the URL with "assertion.php?b="
        • Check Validity, it should return Valid. Keep this tab open for the last check.
      10. Log back in as admin/teacher and remove the badge from that student
        • Course administration > badges > manage badges - click on recipient number - click on award badge
      11. Log back in as the student and view your course badges and confirm the issued date has been removed
      12. In the http://validator.openbadges.org/ tab click the Check Validity button again
        • You should see an Invalid response and the following information in the error: "expected": 200, "received": 410
        • Now copy the URL in the validator box, and paste it into the browser bar. It should show {"revoked":true}
      Show
      Create a course and enrol a couple of users Add a badge to the course Course administration > badges > manage badges Add criteria to the badge and select "manual issued by role" and choose all of the roles Enable access to the badge Go to the recipients tab and click award badge Choose a role and award a student the badge Log in as that student and view your course badges and confirm there is an issued date for you Navigation > Courses > [your course] > badges > course badges Go to the student Profile and add the badge to your backpack User Preferences > Backpack settings > Sign into backpack.openbadges User Preferences > Manage badges > Click "Add to backpack" icon under the new badge. Click Log in or Sign up as needed, follow instructions and Accept the badge into your backpack. Right click and copy path of the badge (should look like [wwwroot] /badges/badge.php?hash= [uniquehashid] ) In another tab navigate to http://validator.openbadges.org/ and paste the copied link into the box. Find the hash value and replace the "badge.php?hash=" in the URL with "assertion.php?b=" Check Validity, it should return Valid. Keep this tab open for the last check. Log back in as admin/teacher and remove the badge from that student Course administration > badges > manage badges - click on recipient number - click on award badge Log back in as the student and view your course badges and confirm the issued date has been removed In the http://validator.openbadges.org/ tab click the Check Validity button again You should see an Invalid response and the following information in the error: "expected": 200, "received": 410 Now copy the URL in the validator box, and paste it into the browser bar. It should show {"revoked":true}
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-43230-master

      Description

      See MDL-40551 for more information.

        Attachments

        1. screen.png
          50 kB
          Matthew Davidson

          Activity

            People

            • Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16