Skip to content

feat(learn): public verification page and JSON-LD endpoints for Open Badges credentials #1272

Open

Description

@gopikrishna-20

Summary

Credentials issued by learn/ carry an id of the form {CREDENTIAL_ISSUER_URL}/credentials/<token>. That URL has to resolve, so anyone holding a credential can open it and check it. This issue adds the public endpoints behind that URL. It builds on the Ed25519 signing helpers (#1246), the JWKS endpoint (#1254) and credential issuance (#1265 ).

Scope

  • GET /credentials/<token> serves an HTML verification page for browsers.
  • The same URL returns the credential JSON-LD for Accept: application/json, or the compact JWS for Accept: application/vc+jwt.
  • /credentials/<token>.json and /credentials/<token>.jwt give explicit machine-readable variants.
  • Every response re-verifies the stored signature against the keys published at /.well-known/jwks.json.
  • Unknown or malformed tokens return 404 with no distinction between them.

Privacy

  • The page shows the learner's name only if they consented at issuance. Otherwise it says the name was not disclosed.
  • The page sets noindex, so named credentials are not search-indexed by default.
  • Credential URLs are excluded from page-view counting, so each token does not create its own row in page_views.

Out of scope (later PRs)

  • Revocation and Bitstring Status List, plus a learner wallet. Until then, revoked credentials return 410 on the machine formats and show a revoked banner on the HTML page.
  • Key rotation hardening and runbook.

Activity

  1. added
    good first issue
    2026-11
    on Nov 18, 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