0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/e2e-server/__snapshots__/well-known.test.js.snap
naz 6cc0c2b76b
🐛 Fixed signing key identificaiton in JWKs
refs https://github.com/TryGhost/Team/issues/1640

- The signing key returned by `GET /ghost/.well-known/jwks.json` was missing an OPTIONAL `use: "sig"` attribute needed to identify it as a signing key in client libraries. E.g. pyton lib: "pyjwt" or node lib: "jwks-client"
- More about the "use" attribute at RFC7515 - https://www.rfc-editor.org/rfc/rfc7515#section-4.1.4
2022-05-24 12:20:30 +01:00

25 lines
653 B
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`.well-known GET /jwks.json should return a JWKS 1: [body] 1`] = `
Object {
"keys": Array [
Object {
"e": "AQAB",
"kid": Any<String>,
"kty": "RSA",
"n": Any<String>,
"use": "sig",
},
],
}
`;
exports[`.well-known GET /jwks.json should return a JWKS 2: [headers] 1`] = `
Object {
"content-length": "277",
"content-type": "application/json; charset=utf-8",
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
"vary": "Accept-Encoding",
"x-powered-by": "Express",
}
`;