Ghost/ghost
Naz 02a0fd5a32 Fixed source attribution for staff token API requests
closes https://github.com/TryGhost/Toolbox/issues/386

- When the API request was made using staff token the source attribution was "user" instead of "api". Misattribution caused ripple effects in  limit service.
- The fix also adds a new combination of data available on the  `req` object - both `user` and `api_key` can be present when the request is done using a staff (user) token. Having both pieces of data on the request object gives more context for business logic, did not find a good reason to keep it "pure" with either `api_key` or `user` property.
2022-08-23 14:38:46 +08:00
..
adapter-manager Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
admin Removed unused services 2022-08-22 21:15:21 +02:00
api-framework Organized package dependencies 2022-08-18 11:55:49 +02:00
api-version-compatibility-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
bootstrap-socket Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
constants Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
core Fixed source attribution for staff token API requests 2022-08-23 14:38:46 +08:00
custom-theme-settings-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
domain-events Organized package dependencies 2022-08-18 11:55:49 +02:00
email-analytics-provider-mailgun Organized package dependencies 2022-08-18 11:55:49 +02:00
email-analytics-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
email-content-generator Organized package dependencies 2022-08-18 11:55:49 +02:00
express-dynamic-redirects Organized package dependencies 2022-08-18 11:55:49 +02:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
job-manager Update dependency date-fns to v2.29.2 2022-08-18 17:15:58 +02:00
magic-link Organized package dependencies 2022-08-18 11:55:49 +02:00
mailgun-client Fixed use of static class field 2022-08-18 22:34:34 +02:00
member-analytics-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
member-attribution Fixed member attribution for subdirectories (#15277) 2022-08-22 17:16:18 +02:00
member-events Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
members-analytics-ingress Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
members-api Fixed source attribution for staff token API requests 2022-08-23 14:38:46 +08:00
members-csv Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
members-events-service Update dependency @tryghost/errors to v1.2.15 2022-08-18 12:02:38 +02:00
members-importer Organized package dependencies 2022-08-18 11:55:49 +02:00
members-ssr Organized package dependencies 2022-08-18 11:55:49 +02:00
minifier Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-api-version-mismatch Organized package dependencies 2022-08-18 11:55:49 +02:00
mw-cache-control Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-error-handler Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-session-from-token Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-update-user-last-seen Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
mw-vhost Cleaned up unused test utils 2022-08-18 11:55:49 +02:00
oembed-service Update dependency tough-cookie to v4.1.0 2022-08-23 02:06:33 +00:00
offers Organized package dependencies 2022-08-18 11:55:49 +02:00
package-json Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
payments Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
security Organized package dependencies 2022-08-18 11:55:49 +02:00
session-service Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
settings-path-manager Update dependency date-fns to v2.29.2 2022-08-18 17:15:58 +02:00
stripe Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
update-check-service Organized package dependencies 2022-08-18 11:55:49 +02:00
verification-trigger Organized package dependencies 2022-08-18 11:55:49 +02:00
version-notifications-data-service Organized package dependencies 2022-08-18 11:55:49 +02:00