Skip to content

Conversation

@lukeholder
Copy link
Member

  • Require valid token or logged-in cart owner to load a cart via load-cart action
  • Add cartLinkExpiry setting (default 24 hours) for token expiration
  • Add getLoadCartUrl() method to Carts service that generates secure token URLs
  • Update Order::getLoadCartUrl() to return secure token URL
  • Add email challenge flow for cart recovery when token is missing/expired
  • Register commerce_cart_recovery system message for recovery emails
  • Add _cart/email-challenge.twig and email-sent.twig templates
  • Carts that have no email/custom associated and not address information will load without needing to check token etc.

- Add secure token validation to load-cart action
  - Carts with email/addresses require valid token or owner authentication
  - Carts without sensitive data can load without token
  - Add email challenge flow for unauthenticated cart recovery
  - Register commerce_cart_recovery system message for recovery emails
  - Add cartLinkExpiry setting (default 24 hours)
  - Add getLoadCartUrl() to Carts service for generating secure URLs
@lukeholder lukeholder changed the title Add token-based security for cart loading [4.x] Add token-based security for cart loading Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants