You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(learn): issue Open Badges 3.0 credentials alongside certificates #1264
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
Activity