# Shopify connection with dynamic shop name

**URL:** <https://community.auth0.com/t/shopify-connection-with-dynamic-shop-name/7050>\
**Category:** Get Help\
**Tags:** custom-social-connec, social-connections\
**Created:** [June 14, 2017, 12:54am UTC](https://community.auth0.com/t/shopify-connection-with-dynamic-shop-name/7050 "2017-06-14T00:54:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nate1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nate1/32/7740_2.png) [@nate1](https://community.auth0.com/u/nate1)\
**Post date:** [June 14, 2017, 12:54am UTC](https://community.auth0.com/t/shopify-connection-with-dynamic-shop-name/7050/1 "2017-06-14T00:54:45Z")

</div>

In my auth scenario **I need the _shop name_ of the Shopify connection to be dynamic** so any shop owner can login and auth via their Shopify credentials. As you can see below, the explicit shop name is required when creating the connection.

Is this even possible? If so how? If it requires a custom workaround, can you provide a complete example (preferably in js)?

![Required shop name][1]

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 14, 2017, 8:23pm UTC](https://community.auth0.com/t/shopify-connection-with-dynamic-shop-name/7050/2 "2017-06-14T20:23:11Z")

</div>

From a quick look at Shopify docs the OAuth integration is per shop, more specifically, it will happen at different endpoints based on the shop name `https://{shop}.myshopify.com/admin/oauth/authorize`. I’m not fully certain of what this implies in terms of Shopify, but I guess that each shop has it’s own notion of users and as such are completely independent from each other from an authentication point of view.

If the above is correct then you can’t pass the shop as a dynamic parameter, as each shop needs to be represented independently of each other which in Auth0 terms would map to different connections (independent users).

For the built-in social connections there’s only support for a single instance as you already noted. As an alternative you could consider representing the individual shops as different custom OAuth connections which would allow more control over the configuration and also support multiple connections, however, this would imply creating those connections through the Management API.

For reference:

- [Adding a generic OAuth1 Authorization Server to Auth0](https://auth0.com/docs/tutorials/adding-generic-oauth1-connection)
- [Add a generic OAuth2 Authorization Server to Auth0](https://auth0.com/docs/connections/social/oauth2)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/shopify-connection-with-dynamic-shop-name/7050/3 "2018-03-02T05:54:37Z")

</div>


