Relative Content

Tag Archive for shopifyfastapihmacshopify-appshopify-api

FastAPI equivalent of request.data, hmac verification error with shopify webhook

I have a FastAPI backend application that should handle webhook and OAuth with Shopify. computing hmac for the OAuth is working as intended, but not the webhook version of it that require to access the raw body. In Flask for example, the computed hmac is not the same if we use request.get_data() or request.data (the later being the correct one).