I am trying to implement Shopify Multipass in my "Development" store. I've enabled Multiplass and set "Accounts are required" in Checkout settings.
Created a new customer via API and getting this result when querying for this customer:
{
"accepts_marketing": false,
"addresses": [],
"created_at": "2019-02-14T14:17:17-05:00",
"currency": "USD",
"default_address": null,
"email": "[email protected]",
"first_name": "M1",
"multipass_identifier": null,
"last_name": "M1",
"last_order_id": null,
"last_order_name": null,
"note": null,
"orders_count": 0,
"phone": null,
"state": "disabled",
"tags": "",
"tax_exempt": false,
"total_spent": 0,
"updated_at": "2019-02-14T14:17:17-05:00",
"verified_email": true,
"metafields": null,
"id": 892572631087
}
I run my process generating the token (using .net nuget)
https://github.com/uoc1691/ShopifyMultipassTokenGenerator/tree/master/ShopifyMultipassTokenGenerator
with this input:
string json = "{\"created_at\":\"2019-02-14T14:17:17-05:00\",\"email\":\"[email protected]\"}";
var url = pass.Process(json);
return Redirect(url);
this is the generated output:
https://kitkatco.myshopify.com/account/login/multipass/A-8K9DQOTy_YFLqPv2UdB_iiubISltQy_bfASNtr8ylqsoz1uvx0JTPD06RdNUjX-26TCVp7NFjbjk1RNsYS20jH7YQNbzkikd6I613a3XLwU3XriMHRzEg8z4racDlzryst9PWmlS3_7pJbJN_dgVNHeadz3fz1z1L_e_JcyLo=
After the redirect I get "Invalid Multipass request"
- What am I doing wrong?
- Just to confirm, multipass_identifier is NULL when creating the user (should it be null?)
- What I am trying to achieve is to user/password protect shopify store so that only users that are logged in (through my external app) be allowed to enter the shopify store/view and purchase products. Is Multipass for this purpose?
Any help would be appreciated.
thanks