0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/test/unit/data
Fabien O'Carroll d246a4761e Implemented externally verifiable identity tokens
no-issue

This adds two new endpoints, one at /ghost/.well-known/jwks.json for exposing
a public key, and one on the canary api /identities, which allows the
Owner user to fetch a JWT.

This token can then be used by external services to verify the domain

* Added ghost_{public,private}_key settings

    This key can be used for generating tokens for communicating with
    external services on behalf of Ghost

* Added .well-known directory to /ghost/.well-known

    We add a jwks.json file to the .well-known directory which exposes a
    public JWK which can be used to verify the signatures of JWT's created
    by Ghost

    This is added to the /ghost/ path so that it can live on the admin
    domain, rather than the frontend. This is because most of its
    uses/functions will be in relation to the admin domain.

* Improved settings model tests

    This removes hardcoded positions in favour of testing that a particular
    event wasn't emitted which is less brittle and more precise about what's
    being tested

* Fixed parent app unit tests for well-known

    This updates the parent app unit tests to check that the well-known
    route is mounted. We all change proxyquire to use `noCallThru` which
    ensures that the ubderlying modules are not required. This stops the
    initialisation logic in ./well-known erroring in tests

https://github.com/thlorenz/proxyquire/issues/215

* Moved jwt signature to a separate 'token' propery

    This structure corresponds to other resources and allows to exptend with
    additional properties in future if needed
2020-03-16 13:22:04 +01:00
..
db Fixed failure when upgrading to version 3.5.x 2020-02-13 12:53:44 +08:00
exporter 🏗 Extracted post metadata in new post_meta table (#11102) 2019-09-16 14:15:55 +05:30
importer 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
meta 🐛 Fixed publisher logo meta schema 2020-03-03 12:18:23 +00:00
schema Implemented externally verifiable identity tokens 2020-03-16 13:22:04 +01:00
validation 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
xml/sitemap Extracted frontend folder (#10780) 2019-06-19 11:30:28 +02:00