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): public verification page and JSON-LD endpoints for Open Badges credentials #1272
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.
Activity