Skip to content

feat(learn): issue Open Badges 3.0 credentials alongside certificates #1264

Open

Description

@gopikrishna-20

Summary

When a learner generates a certificate, learn/ should also issue a signed Open Badges 3.0 credential for the same achievement. It builds on the Ed25519 signing helpers (#1246) and the public JWKS endpoint (#1254).

Scope of this issue

  • Build an OpenBadgeCredential and sign it as a compact JWS (typ: vc+jwt) using the existing Ed25519 helpers.
  • Store it in a new credentials table, linked to the certificate row.
  • Hook issuance into POST /api/certificates/generate/<id> as best effort, so a credential failure never breaks certificate generation.
  • Add a learner consent checkbox for including their name in the credential.
  • Make issuance idempotent per learner and activity.

Privacy and consent design

  • The learner's name is included only with explicit opt-in. Without it, the credential uses a random per-credential urn:uuid subject id.
  • No email address or internal user id ever appears in the credential.
  • Only the learner can trigger issuance. A host-triggered request creates the certificate but no credential.
  • A signed credential is never modified. Changes mean revoke and reissue.
  • On account deletion, the credential is not auto-revoked. Its link to the user and certificate is cleared (user_id and certificate_id set to NULL), and personal data is deleted as before.

Out of scope (later PRs)

  • Public verification page and JSON-LD endpoint
  • Revocation and Bitstring Status List, plus a learner wallet
  • Key rotation hardening and runbook

Activity

  1. added
    good first issue
    2026-11
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2026-11good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions