Focuses on API authentication, access scopes, and permission management.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi!
I've successfully implemented the Oauth flow with a small inconvenience. Before redirecting the user to:
"https://example.myshopify.com/admin/oauth/authorize?client_id=client_id&scope=read_orders&redirect_u..."
I set a cookie with the value of the "state" param. This is to later validate the auth callback using:
cookies.encrypted[auth_response[:cookie].name] = { expires: auth_response[:cookie].expires, secure: true, http_only: true, same_site: :none, # I tried this but didnt work value: auth_response[:cookie].value }