woocommerce/plugins/woocommerce-blocks/tests/php/RestApi
Mike Jolley 2ff854e212 Add nonces to Store API endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/1992)
* Disable authentication for the Store API completely.

This may also resolve woocommerce/woocommerce-blocks#1991

* Add nonce handling to the abstract route

* Default state

* Add shared controls including nonce api fetch

* Use shared controls

* Hydrate inital nonce

* Update data stores

* Update nonce validation

* Fix tests by setting nonces

* Remove print_r debug

* Revert useStoreCart change

* Add nonce middleware

Co-Authored-By: Darren Ethier <darren@roughsmootheng.in>

* Switch back to apiFetchWithHeaders

* Docs

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-03-19 11:50:51 +00:00
..
Controllers Validate store API schema in unit tests (https://github.com/woocommerce/woocommerce-blocks/pull/1553) 2020-01-17 11:34:15 +00:00
StoreApi Add nonces to Store API endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/1992) 2020-03-19 11:50:51 +00:00
Utilities Update `reserved stock` class to handle concurrent requests (https://github.com/woocommerce/woocommerce-blocks/pull/1778) 2020-03-06 11:44:20 +00:00