Skip to content

Badge Issuer and Class are unique for each awarded Badge #120

@bencomp

Description

@bencomp

Since #90 was resolved (thanks again!), I can import earned badges into a backpack like Badgr's. I noticed that each badge shows up as coming from a different issuer, while the badges I earned are all from Python for Everyone.

It looks like the Badge Issuer URI is indeed unique, because it includes the assertion ID (the encoded badge information):

$badge_issuer = $CFG->wwwroot . "/badges/badge-issuer.php?id=". $encrypted;

and in
$badge_issuer = $CFG->wwwroot . "/badges/badge-issuer.php?id=". $encrypted;

I then realised that the line

$badge_url = $CFG->wwwroot . "/badges/badge-info.php?id=". $encrypted;

makes each badge class, i.e. the type of badge, unique as well – which makes comparing badges by their URIs impossible.

Would it be possible to define a single badge issuer URI per installation and one badge class URI for each defined badge in lessons.json? I think it is likely that one installation is supported by a singe issuer and it would reduce some of the code complexity as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions