woocommerce/plugins/woocommerce-blocks/tests/php/StoreApi/Routes
Mike Jolley 6f93c5cf1b Store API - Cart JWT tokens/session handling (https://github.com/woocommerce/woocommerce-blocks/pull/5953)
* Re-apply token support

* Updated nonce headers

* Updated package-lock.json

* test commit to debug failing git hooks

* Revert "test commit to debug failing git hooks"

This reverts commit e64086b0a7aede154705be09c7b3433b08bc1e34.

* JsonWebToken utility class for generating and validating HS256 JWT tokens. Removed third-party JWT library.

* Add ext-hash to composer (required by hash_hmac())

* Removed unnecessary method param.

* Tests for retrieving cart contents via Cart-Token

* Removed token tests ( we can't properly test cart token functionality until we refactor the way it intercepts calls to replace the session object )

* Abstracted payload from JsonWebToken class. We can now use it to encode custom payloads and reuse them wherever we want.

* Fixed missing check for token expiration in the payload.

* MD lint error and config fix

* Update composer.lock

* Fixed bug using the wrong nonce header.

* Refactor to properly save session data based on cart token.

* Refactored DB queries to properly use prepared statement

* Removed underscore prefix for class attributes

* Fixed spaces instead of tabs indenting composer.json. Cleaned up .editorconfig

* Cleaned up borked .md comments.

* Comment for WP_SETUP_CONFIG check.

* Reverted SQL prepared statement for including table names.

* Used hash_equals() for signature comparison. Renamed some wrongly named properties.

* Updated composer.lock

* Reverted some accidentally removed lines on some documentation files.

* Reverted accidentally removed line on docs/internal-developers/testing/releases/404.md

* Changed param type from mixed to

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2022-10-03 11:49:32 +01:00
..
Batch.php Remove X- Prefixes from custom headers (https://github.com/woocommerce/woocommerce-blocks/pull/6020) 2022-03-11 12:07:08 +00:00
Cart.php Store API - Cart JWT tokens/session handling (https://github.com/woocommerce/woocommerce-blocks/pull/5953) 2022-10-03 11:49:32 +01:00
CartCoupons.php Remove X- Prefixes from custom headers (https://github.com/woocommerce/woocommerce-blocks/pull/6020) 2022-03-11 12:07:08 +00:00
CartExtensions.php Remove X- Prefixes from custom headers (https://github.com/woocommerce/woocommerce-blocks/pull/6020) 2022-03-11 12:07:08 +00:00
CartItems.php Remove X- Prefixes from custom headers (https://github.com/woocommerce/woocommerce-blocks/pull/6020) 2022-03-11 12:07:08 +00:00
Checkout.php Remove X- Prefixes from custom headers (https://github.com/woocommerce/woocommerce-blocks/pull/6020) 2022-03-11 12:07:08 +00:00
ControllerTestCase.php Store API - Cart JWT tokens/session handling (https://github.com/woocommerce/woocommerce-blocks/pull/5953) 2022-10-03 11:49:32 +01:00
ProductAttributeTerms.php StoreAPI: Rename namespace to remove `\Blocks` (https://github.com/woocommerce/woocommerce-blocks/pull/5982) 2022-03-04 13:28:37 +00:00
ProductAttributes.php StoreAPI: Rename namespace to remove `\Blocks` (https://github.com/woocommerce/woocommerce-blocks/pull/5982) 2022-03-04 13:28:37 +00:00
ProductCollectionData.php StoreAPI: Rename namespace to remove `\Blocks` (https://github.com/woocommerce/woocommerce-blocks/pull/5982) 2022-03-04 13:28:37 +00:00
Products.php Add Product endpoint to ExtendSchema (https://github.com/woocommerce/woocommerce-blocks/pull/6122) 2022-04-11 17:40:26 +01:00