Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Store API - Cart JWT tokens/session handling #5953

Merged
merged 61 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5e5349c
Re-apply token support
mikejolley Mar 9, 2022
003f3cc
Updated nonce headers
mikejolley Mar 9, 2022
601056f
Updated package-lock.json
wavvves Jun 15, 2022
6c4a70d
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 15, 2022
e64086b
test commit to debug failing git hooks
wavvves Jun 15, 2022
bda1beb
Revert "test commit to debug failing git hooks"
wavvves Jun 15, 2022
44c80f0
JsonWebToken utility class for generating and validating HS256 JWT to…
wavvves Jun 16, 2022
898361b
Add ext-hash to composer (required by hash_hmac())
wavvves Jun 17, 2022
f4cd644
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 20, 2022
7b22230
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 20, 2022
3482afe
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 21, 2022
2784202
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 29, 2022
7441f80
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jun 29, 2022
1985e96
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 13, 2022
58e08d5
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 14, 2022
d2cd193
Removed unnecessary method param.
wavvves Jul 15, 2022
c57c3a8
WIP: Tests for retrieving cart contents via Cart-Token
wavvves Jul 15, 2022
011c7ed
WIP: Session handler custom construct
wavvves Jul 18, 2022
14a045d
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 18, 2022
85ecd3e
WIP: test out some stuff
wavvves Jul 19, 2022
ff079e1
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 19, 2022
48782b0
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 21, 2022
196a01a
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 26, 2022
4f650e9
Removed token tests ( we can't properly test cart token functionality…
wavvves Jul 26, 2022
085888e
Abstracted payload from JsonWebToken class. We can now use it to enco…
wavvves Jul 26, 2022
98d110d
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Jul 27, 2022
66600a6
Fixed missing check for token expiration in payload.
wavvves Jul 27, 2022
8db7c1f
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Aug 23, 2022
996aa76
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Aug 24, 2022
add848f
md lint error and config fix
wavvves Aug 24, 2022
81c8fae
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 16, 2022
ae2bab4
Merge branch 'trunk' into experiment/store-api-cart-jwt
senadir Sep 20, 2022
84fd733
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 20, 2022
96ab6b0
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 21, 2022
c4437b3
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 21, 2022
5e6cfe4
Update composer.lock
wavvves Sep 21, 2022
b3319bb
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 22, 2022
c7a3d77
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 26, 2022
6023713
Fixed bug using wrong nonce header.
wavvves Sep 26, 2022
6953016
Refactor to properly save session data based on cart token.
wavvves Sep 26, 2022
2c3fbbf
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 26, 2022
9849299
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 26, 2022
3541264
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 27, 2022
dd0c3d5
Refactored db queries to properly use prepared statement
wavvves Sep 27, 2022
9e8fe35
Removed underscore prefix for class attributes
wavvves Sep 27, 2022
46159f8
Fixed spaces instead of tabs indenting composer.json. Cleaned up .edi…
wavvves Sep 27, 2022
f1f785d
Cleaned up borked .md comments.
wavvves Sep 27, 2022
c372747
Comment for WP_SETUP_CONFIG check.
wavvves Sep 27, 2022
8475567
Reverted SQL prepared statement for including table names.
wavvves Sep 27, 2022
96a892e
Used hash_equals() for signature comparison. Renamed some wrongly nam…
wavvves Sep 27, 2022
438c438
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 27, 2022
c58f1be
Updated composer.lock
wavvves Sep 27, 2022
23697fc
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 28, 2022
a390bd2
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 28, 2022
a9c48c9
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 28, 2022
171ac59
Reverted some accidentally removed lines on some documentation files.
wavvves Sep 28, 2022
01bc99f
Reverted accidentally removed line on docs/internal-developers/testin…
wavvves Sep 28, 2022
93e937b
Changed param type from mixed to
wavvves Sep 28, 2022
262d43f
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 29, 2022
2a326c0
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Sep 30, 2022
1b9e0d4
Merge branch 'trunk' into experiment/store-api-cart-jwt
wavvves Oct 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ trim_trailing_whitespace = true
[*.txt]
trim_trailing_whitespace = false

[*.{json,yml}]
[*.yml]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
[*.md]
indent_style = space
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"ext-hash": "*",
"ext-json": "*",
wavvves marked this conversation as resolved.
Show resolved Hide resolved
"composer/installers": "^1.7.0",
"automattic/jetpack-autoloader": "^2.9.1"
},
Expand Down
53 changes: 28 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading