Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloadable Items are not downloadable with JWT #266

Open
henrikwirth opened this issue Apr 27, 2020 · 0 comments
Open

Downloadable Items are not downloadable with JWT #266

henrikwirth opened this issue Apr 27, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@henrikwirth
Copy link

henrikwirth commented Apr 27, 2020

Describe the bug
So if I try to download a downloadable Item, I get an error, which says You have to be logged in to download files.

To Reproduce
Steps to reproduce the behavior:

WP:

  1. Create a SimpleProduct which is virtual and downloadable
  2. Assign an order to a user with this product

Frontend:

  1. Login as the Customer
  2. Query for the Customer and the downloadbleItem.url
  3. Open the URL with your JWT token set.

Expected behavior

What would be nice, if the WordPress backend looks for the JWT token and is able to validate, that you are allowed to download the item.

Additional context
Using the newest versions of WPGraphql, JWT Plugin and WooCommerce Plugin

Also see: https://docs.woocommerce.com/document/digital-downloadable-product-handling/

@kidunot89 kidunot89 added bug Something isn't working enhancement New feature or request labels Apr 30, 2020
@kidunot89 kidunot89 added this to the v0.6.0 milestone Apr 30, 2020
@kidunot89 kidunot89 mentioned this issue Jul 29, 2020
5 tasks
@kidunot89 kidunot89 removed this from the v0.6.0 milestone Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants