Single sign on with Shopify Multipass

Is there an easy way to integrate with Shopify Multipass?

Thanks

3 „Gefällt mir“

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!

1 „Gefällt mir“

Sure but is there an OAuth plugin?

Yes

https://github.com/discourse/discourse-oauth2-basic

2 „Gefällt mir“

Did you get this to work?

Note for future visitors, Shopify’s OAuth2 integration is for store-owners only, not end users

Multipass support might be possible with a custom plugin, but note it is not quite “SSO” in the conventional sense. I believe multipass goes the other way - it would allow people to click a link on the forum and be automatically logged into the shopify store.

5 „Gefällt mir“

This is where you want to talk to The Pavilion (@Angus) about an integration between Shopify and Discourse.

I saw you had an old marketplace post here

Did you/pavillion manage to get true SSO working with Shopify as the identity provider? If so, awesome! (and also I’d love to know which APIs you used to achieve it :wink: )

4 „Gefällt mir“

Angus did pull it off, but by using Auth0 as the identity provider.

5 „Gefällt mir“

Cool! Does Auth0 use Shopify as the identity provider? Or has Shopify been configured to use Auth0 as the identity provider?

2 „Gefällt mir“

I’ll let @Angus step in with all the technical answers. He’s great to work with!

3 „Gefällt mir“

Auth0 is the identity provider.

Multipass is a great option if it’s available, but as mentioned, it’s an enterprise solution, i.e. you need to have Shopify Plus. If you’re using Multipass and Auth0 (or another identity provider) this is relatively straightforward. As to integrating multipass directly with Discourse (i.e. the original question), you’d need to build a plugin, but it wouldn’t be too hard.

In @outofthebox’s case Multipass wasn’t available. I implemented it using a shopify theme, Auth0 Single Page App SDK and a number of Auth0 rules. It’s somewhat involved. I hope to publish it at some point, but we’ll see.

There is probably scope for a Shopify Discourse App actually which would make this somewhat easier. I started to build it at one point, but found a more efficient way for the goal at hand.

6 „Gefällt mir“

Nur eine Anmerkung, dass der oben erwähnte Code hier zusammen mit einer detaillierten Readme-Datei verfügbar ist.

Bitte beachten Sie die Warnungen in der Readme-Datei. Ich würde Ihnen nicht empfehlen, dies einzurichten, es sei denn, Sie verstehen, was diese Implementierung tut.

Ich plane, in naher Zukunft eine Multipass-Integration (die offizielle Shopify SSO-Lösung) zu implementieren. Wenn Sie an der Multipass-Integration interessiert sind und konkretere Details wünschen, können Sie mir eine private Nachricht senden oder hier antworten. Wenn es ein erhebliches Interesse gibt, werde ich dies priorisieren.

3 „Gefällt mir“

Hallo @angus, wir sind an einer Multipass-Integration interessiert (wir sind bei Shopify Plus und erwägen, Discourse als Community für Kunden einzurichten). Könnten Sie uns weitere Details zusenden und wann Sie voraussichtlich etwas entwickelt haben werden?

3 „Gefällt mir“