Is there an easy way to integrate with Shopify Multipass?
Thanks
Is there an easy way to integrate with Shopify Multipass?
Thanks
From the looks of it you would need a custom auth plugin. Is there any reason you prefer this over existing OAuth 2 support they also provide?
Does it offer the same functionality? If so then no other reason than I didn’t know about it!
Although it seems the oauth2 isn’t available on your lower hosted packages if I’m correct?
Yeah our generic OAuth 2 plugin would be business and up, multi pass would require enterprise though and custom work
So I guess the best option is to go self hosted then.
Can we do OAuth2 on self hosted?
You can do literally anything self-hosted, provided you have sufficient time and engineering expertise!
Sure but is there an OAuth plugin?
你成功运行这个了吗?
致未来访问者的说明:Shopify 的 OAuth2 集成仅适用于商店所有者,不适用于最终用户。
通过自定义插件可能支持 Multipass,但请注意,这并非传统意义上的“单点登录(SSO)”。我认为 Multipass 的方向相反——它允许用户在论坛点击链接后,自动登录到 Shopify 商店。
这里是您与 The Pavilion (@Angus) 讨论 Shopify 与 Discourse 集成的地方。
我看到你之前在这里发过一个旧的市场帖子
你们/Pavillion 是否成功实现了以 Shopify 为身份提供商的真正单点登录(SSO)?如果是的话,太棒了!(另外,我也很想知道你们使用了哪些 API 来实现它;)
Angus 确实做到了,但他是通过 Auth0 作为身份提供商来实现的。
太棒了!是 Auth0 使用 Shopify 作为身份提供商,还是 Shopify 已配置为使用 Auth0 作为身份提供商?
我会让 @Angus 来解答所有技术问题。和他合作非常愉快!
Auth0 是身份提供商。
如果可用,Multipass 是一个很好的选择,但如前所述,它是一项企业级解决方案,也就是说您需要拥有 Shopify Plus。如果您使用 Multipass 和 Auth0(或其他身份提供商),这个过程相对直接。至于将 Multipass 直接与 Discourse 集成(即原始问题),您需要构建一个插件,但这并不会太难。
在 @outofthebox 的情况下,Multipass 不可用。我通过使用 Shopify 主题、Auth0 Single Page App SDK Code Grant Flow with PKCE. - Auth0 Docs 以及若干 Auth0 规则实现了该功能。这个过程相对复杂。我希望能将其发布出来,但具体如何还需看情况。
实际上,可能有一个 Shopify Discourse 应用的开发空间,这将使此事变得相对简单。我曾一度开始构建它,但后来发现了一个针对当前目标更高效的方法。
上面提到的代码可以在这里找到,以及详细的自述文件。
请注意自述文件中的警告。除非您了解此实现的作用,否则不建议您进行设置。
我计划在不久的将来进行多通道集成(官方的 Shopify SSO 解决方案)。如果您对多通道集成感兴趣并想要更具体的信息,可以给我发私信或在此回复。如果有很大的兴趣,我会优先处理。
嘿 @angus,我们热切希望集成 multipass(我们使用 Shopify Plus,并计划为客户设置 Discourse 作为社区),您能否发送更多详细信息,以及您认为何时会开发完成?