Skip to content

v3.9.0

Choose a tag to compare

@luisgf luisgf released this 08 Jul 09:01
· 276 commits to master since this release

Feature release: richer OB 3.0 credentials — verifiable third-party endorsements, and a broadened data model (full evidence lists and competency-framework alignments).

Added

  • feat(ob3): support for OpenBadges 3.0 endorsementJwt (spec errata v1.6, added to context 3.0.3). Third-party endorsements were passing through as opaque, unmapped fields; the model now exposes them at the three levels the spec allows — credential.endorsement_jwts, issuer.endorsement_jwts, achievement.endorsement_jwts, gathered by credential.all_endorsement_jwts() — and round-trips them. New ob3.verify_endorsement_jwt(token, …) verifies an EndorsementCredential JWT under the endorser's key (resolved from its own issuer did:web/did:key, or an explicit key when the endorser is not a DID), checking the EndorsementCredential type and its validFrom/validUntil window. openbadges-verifier --json now reports the endorsements count. (#161)
  • feat(ob3): broadened credential data model toward the OB 3.0 spec — the gap versus the spec was the model, not the crypto. New Evidence (the full evidence array: narrative, name, description, genre, audience — beyond the single evidence_url) and Alignment (the competency-framework mappings an LMS reads to map a badge to a competency) dataclasses, plus achievementType, creditsAvailable and an alignments list on Achievement. All are validated in the house style (dataclasses + mypy, no Pydantic), parse from a verified credential, round-trip through to_vc, and still satisfy the offline conformance schema. (Refs #162)

Not included (deferred): the rest of #162 — Result/ResultDescription, the credentialSubject IdentityObject (identifier), and creditsEarned (the subject/assessment cluster).

Verified: the full local gate — flake8, mypy --strict, and the complete suite (935 tests, [ldp] extra) — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish.

Full history: Changelog.txt