1EdTech / openbadges-discussion

A no-code repository for having discussions related to the general technical issues of openbadges.
10 stars 3 forks source link

Allow badges to be "baked" into HTML pages #6

Closed toolness closed 7 years ago

toolness commented 10 years ago

I think it would be really great if badges could be baked into HTML pages, or even if multiple badges could be baked into a single HTML page.

This could be done via a <link> tag in the document header, e.g.:

<link rel="openbadges-assertion" href="badge.json">

Or, in the case of multiple badges per page, it could be done via a data-assertion attribute on an <img> or <div> element. Or something else.

This has a number of benefits:

Note that this proposal is distinct from a HTML Microformat for Open Badges, which prescribes a way to encapsulate all the information about a badge/class/issuer in HTML. The proposal described here merely prescribes a way to associate a web page with one or more JSON assertions.

An alternative to this proposal might be to somehow merge it with #1, so that the same specification could be used to advertise the badge classes an issuer provides and associate issued badges with a web page. But that might be trying to kill too many birds with one stone.

timothyfcook commented 7 years ago

Moving to archive. Baked badgeAssertions are accessible via a URL.