0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/services/auth
Hannah Wolfe 6dc3f1bf56
Removed versioning from api-key/admin auth
refs: https://github.com/TryGhost/Toolbox/issues/229

- our api-key audience handling code is still relying on internal api version config
- the regex used is also buggy (it expects 3 parts, which isn't true without versions) and doesn't always match, in which case it can cause the tests to hang
- we already had some very similar code in the version-rewrite middleware which is also validates exact values for version and api type
- moved this code into a util inside api-version-compatibility-service
- using this code, all the tests still pass as is, but when I start to adjust them to cover more cases, none hang (test changes coming in a separate commit)
2022-05-06 08:09:54 +01:00
..
api-key Removed versioning from api-key/admin auth 2022-05-06 08:09:54 +01:00
members Updated dependency express-jwt to v7 2022-04-28 11:15:04 +01:00
session Lazily instantiated express-session middleware 2021-07-14 17:19:53 +01:00
authenticate.js
authorize.js Replaced i18n.t w/ tpl helper in authorize.js (#13442) 2021-10-05 10:34:07 +01:00
index.js
passwordreset.js Renamed passwordreset body object to password_reset 2022-04-28 15:37:11 +01:00
setup.js Updated newsletter fixtures to remove nullable sender name (#14479) 2022-04-14 23:45:59 +05:30