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

Document fetching checkout/order by ID without permissions #1197

Open
maarcingebala opened this issue Jul 1, 2024 · 2 comments
Open

Document fetching checkout/order by ID without permissions #1197

maarcingebala opened this issue Jul 1, 2024 · 2 comments
Labels

Comments

@maarcingebala
Copy link
Member

Saleor allows users to fetch checkout and orders by ID without permission. Since this might be considered a security risk, we should document how it works in more detail.

  • Checkout and order GraphQL IDs are based on a hard-to-guess UUID. As long as it is not shared anywhere, you need to know the ID to fetch these objects.
  • When the user field is set (i.e., a checkout/order is associated with a user account), it won't be returned when querying without an auth token. The user field can be fetched only by the owner.

Sections where this should be mentioned:

@timuric
Copy link
Contributor

timuric commented Jul 1, 2024

Use case:
Sending email with order confirmation you a link to "track the status of your order" without signing in, similar to how delivery service tracking emails work

@timuric
Copy link
Contributor

timuric commented Jul 16, 2024

Document path 'core concepts > checkout > permissions'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants