Michał Miszczyszyn
5057d3491e
Support comma-delimited x-forwarded-proto ( #227 )
...
* Support comma-delimited x-forwarded-proto
* Changeset
2023-04-11 15:03:50 +02:00
Lukasz Ostrowski
9420209a2d
Add sync webhook ( #202 )
...
* Change process-async-saleor-webhook to process-saleor-webhook and add better debug logs
* Change processWebhook name
* wip
* Add base class structure
* refactor
* add sync payload builder
* wip
* wip
* Add some missing webhook responses
* Fix tests for Async version
* Fix tests
* Add MockAPL test util
* Refactor tests to use MockAPL
* Add test to sync webhook
* Restore legacy subscriptionQueryAst field for compatibility
* CR Fixes - TS type & event -> eventType
* Changelog, docs and remove old payment webhooks
* Apply suggestions from code review
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* Update src/handlers/next/saleor-webhooks/process-saleor-webhook.ts
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
---------
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-03-06 15:01:22 +01:00
Lukasz Ostrowski
652833146f
Expose verify-jwks and remove legacy domain usage instead of api url ( #173 )
...
* Expose verify-jwks and remove legacy domain usage instead of api url
* Update src/verify-signature.ts
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
---------
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-02-14 16:18:46 +01:00
Krzysztof Wolski
e439438d8f
Add functions to process the Saleor webhooks ( #100 )
...
* Add functions to process the saleor webhooks
Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2022-11-03 13:05:28 +01:00
Lukasz Ostrowski
aa4d55b83d
Disable token iss validation ( #75 )
...
* Disable token iss validation
* Disable VercelApl constructor validation
2022-10-11 16:09:29 +02:00
Lukasz Ostrowski
a839314f08
Add central SaleorApp instance ( #71 )
...
* Add SaleorApp class
* Add middleware and tests
* Move APL validation to APL
* Fix test
* Add prepush hook
* Add better error for missing vercel envs
* Add test
2022-10-11 09:40:08 +02:00
Lukasz Ostrowski
0352356fd3
Add Handler factories ( #61 )
...
* Add createManifestHandler
* Add register handler factory
* Add docs to handlers factory
* Improve tsup configuration (select entry points)
* Reexport symbols from index
* Improve tests
2022-09-21 11:25:01 +02:00
Krzysztof Wolski
027b239114
Use APL debug util
2022-09-05 11:09:06 +02:00
Lukasz Ostrowski
47e7865dc5
Add debug messages to middlewares
...
Add debug messages to middlewares
Apply suggestions from code review
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
better debug messages
Add experimental debug middleware
2022-09-05 10:13:46 +02:00
Krzysztof Wolski
eb062c6b10
Update types on headers util
2022-09-02 16:52:44 +02:00
Krzysztof Wolski
ff0a03c215
Fix export from new modules
2022-08-30 09:17:11 +02:00
Krzysztof Wolski
e1dc4c0344
Test withAuthTokenRequired
2022-08-25 17:29:32 +02:00
Krzysztof Wolski
0882c7e408
Test withSaleorEventMatch
2022-08-25 17:22:53 +02:00
Krzysztof Wolski
d90abdceac
Test withSaleorDomainPresent
2022-08-25 17:10:49 +02:00
Krzysztof Wolski
158a40203e
Split middleware into separate files
2022-08-25 16:56:51 +02:00