简体   繁体   English

Shopify API对客户进行身份验证

[英]Shopify api authenticate customers

I have enabled customer accounts in my shopify account. 我在shopify帐户中启用了客户帐户。 I have developed another website where a situation came where i need a login field for the customers who have signed up in my shopify shop. 我已经开发了另一个网站,在这种情况下,我需要为在shopify商店中注册的客户提供登录字段。 I am not able to do this with shopify auth. 我无法通过shopify auth执行此操作。 Any solutions? 有什么办法吗?

Set your "other" website to be a subdomain of your Shopify store. 将您的“其他”网站设置为Shopify商店的子域。 When a known customer logs in to Shopify, set a cookie on the domain. 当已知客户登录Shopify时,在域上设置cookie。 The subdomain has access to that cookie, so clearly you can present a login if you want, or just authenticate them based on the fact they logged into Shopify. 子域可以访问该Cookie,因此很明显,您可以根据需要显示登录名,也可以仅基于他们登录Shopify的事实进行身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM