IMS Final Release
Open Badges Baking Specification
IMS Final Release
|Date Issued:||12 April 2018|
|Status||IMS Final Release|
IPR and Distribution Notices
Recipients of this document are requested to submit, with their comments, notification of any relevant patent claims or other intellectual property rights of which they may be aware that might be infringed by any implementation of the specification set forth in this document, and to provide supporting documentation.
IMS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on IMS’s procedures with respect to rights in IMS specifications can be found at the IMS Intellectual Property Rights web page: http://www.imsglobal.org/ipr/imsipr_policyFinal.pdf.
The following participating organizations have made explicit license commitments to this specification:
|Org name||Date election made||Necessary Claims||Type|
|Credly||March 14, 2019||No||RF RAND (Required & Optional Elements)|
|Mozilla Foundation||March 14, 2019||No||RF RAND (Required & Optional Elements)|
|Digitalme||March 11, 2019||No||RF RAND (Required & Optional Elements)|
|D2L Corporation||March 10, 2019||No||RF RAND (Required & Optional Elements)|
|Credly||March 18, 2018||No||RF RAND (Required Elements)|
|Pearson||November 21, 2017||No||RF RAND (Required Elements)|
Copyright © 2018 IMS Global Learning Consortium. All Rights Reserved.
Permission is granted to all parties to use excerpts from this document as needed in producing requests for proposals.
The limited permissions granted above are perpetual and will not be revoked by IMS or its successors or assigns.
Use of this specification to develop products or services is governed by the specification license.
THIS SPECIFICATION IS BEING OFFERED WITHOUT ANY WARRANTY WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NONINFRINGEMENT IS EXPRESSLY DISCLAIMED. ANY USE OF THIS SPECIFICATION SHALL BE MADE ENTIRELY AT THE IMPLEMENTER’S OWN RISK, AND NEITHER THE CONSORTIUM, NOR ANY OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER, DIRECTLY OR INDIRECTLY, ARISING FROM THE USE OF THIS SPECIFICATION.
Public contributions, comments and questions can be posted here: https://www.imsglobal.org/forums/ims-glc-public-forums-and-resources/open-badges-community-forum.
The IMS Logo is a trademark of the IMS Global Learning Consortium, Inc. in the United States and/or other countries.
For more information: https://www.imsglobal.org/trademarks
Documents Name: Open Badges Baking Specification
Status of this Document
This document is made available for adoption by the public community at large.
What Is Badge Baking?
Open Badges may be transmitted as image files with badge Assertions encoded within. This allows Open Badges to be portable wherever image files may be stored or displayed. Each Assertion expresses verifiable information about an individual’s achievement.
Badge Baking is the process of taking an Assertion and embedding it into the badge image, so that when a user displays a badge on a page, software that is OpenBadges-aware can automatically extract that Assertion data and perform the checks necessary to see if a person legitimately earned the badge. The BadgeClass image must be in either PNG or SVG format in order to support baking.
iTXt chunk should be inserted into the PNG with keyword
openbadges. The text can either be a signed badge assertion or the raw JSON for the OpenBadges assertion. Compression MUST NOT be used. At the moment, language tag and translated keyword have no semantics related to badge baking.
An example of creating a chunk (assuming an iTXt constructor):
An iTXt chunk with the keyword “openbadges” MUST NOT appear in a PNG more than once. When baking a badge that already contains OpenBadges data, the implementor may choose whether to pass the user an error or overwrite the existing chunk.
Parse the PNG datastream until the first
iTXt chunk is found with the keyword
openbadges. The rest of the stream can be safely discarded. The text portion of the iTXt will either be the JSON representation of an OpenBadges assertion or a signature.
The pre-specified behavior of badge baking worked differently. Instead of baking the whole assertion or signature into an
iTXt:openbadges chunk, the URL pointing to the hosted assertion was baked into a
tEXt:openbadges chunk. In order to get the full assertion, an additional HTTP request must be made after extracting the URL from the
First, Add an
xmlns:openbadges attribute to the
<svg> tag with the value “http://openbadges.org”. Directly after the
<svg> tag, add an
<openbadges:assertion> tag with a
verify attribute. The value of
verify should either be a signed OpenBadges assertion or the URL from
verify.url in the badge assertion.
If a signature is being baked, no tag body is necessary and the tag should be self closing.
If an assertion is being baked, the JSON representation of the assertion should go into the body of the tag, wrapped in
An example of a well baked SVG with a hosted assertion:
There MUST be only one
<openbadges:assertion> tag in an SVG. When baking a badge that already contains OpenBadges data, the implementor may choose whether to pass the user an error or overwrite the existing tag.
Parse the SVG until you reach the first
<openbadges:assertion> tag. The rest of the SVG data can safely be discarded.
If the tag has no body, the
verify attribute will contain the signature of the badge. If there is a body, it will be the JSON representation of a badge assertion.
Baking Specification Changelog
2018-04-16 Version 1.0.0 Final
- IMS Final Release, no material changes since last version
2017-02-13 Version 1.0.0
- Update SVG example to use Open Badges 2.0 syntax
- Fix typo in introduction
2013-11-05 Version 1.0.0
- Support for full assertions added
- Support for signed badges added
- Support for SVGs added
- PNG baking now uses
- Only PNGs supported:
tEXtchunk used with keyword
- Only hosted badges supported
- Hosted URL embedded in PNG