# Providing 3rd party integrations within a Multi-tenant environment using applications

**URL:** <https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102>\
**Category:** Get Help\
**Created:** [March 9, 2020, 10:26pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102 "2020-03-09T22:26:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![calvin2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/calvin2/32/13315_2.png) [@calvin2](https://community.auth0.com/u/calvin2)\
**Post date:** [March 9, 2020, 10:26pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/1 "2020-03-09T22:26:33Z")

</div>

Hi,

We selected the Multi-tenant by application approach. So for each tenant we have created a unique auth0 application. Now we want to allow 3rd parties to integrate with our public API.

One approach is to generate a unique application per 3rd party per tenant, and give the 3rd party the client\_id and client\_secret. The 3rd part can simply make client\_credential exchanges with auth0 to access the public API.

Is there an approach where we could give the 3rd party a single application for all tenants, and allow the end user to consent to that 3rd party having access to their tenant? That way each tenant does not need to generate a new client secret for each integration they make?

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 11, 2020, 3:56pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/2 "2020-03-11T15:56:12Z")

</div>

Hi @calvin2,

It is hard to answer your question without some more details. A couple of points of clarification:  
how many Auth0 tenants do you have? Why do you have a multi-tenant architecture?  
Are you suggesting using client credentials to allow 3 party apps to access end user data? That is not good, as an evil 3rd party (think disgruntled employee) could then access data for end users that did not give consent.  
Without understanding the tenant architecture, I can’t answer your main question about applications.

John

---

<div class="post-metadata">

**Author:** ![calvin2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/calvin2/32/13315_2.png) [@calvin2](https://community.auth0.com/u/calvin2)\
**Post date:** [March 11, 2020, 4:57pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/3 "2020-03-11T16:57:43Z")

</div>

Sorry for the confusion around multi-tenant.

We have one Auth0 Tenant for Production, we have many Auth0 Applications/Clients; one Auth0 Application per customer (the multi-tenant aspect). The client credential and secret are consumed by our backend systems alone (not shared).

To support a 3rd part application consuming our Public API’s, my current approach is to generate **another** Auth0 Application that is locked to that single customer with limited scopes. These credentials are then consumed by the third party. The customer has to generate this auth0 application and provide it to the third party.

The above approach means that we will generate one Auth0 application per customer (our application) and one Auth0 application per customer per third party integration. If a customer has three 3rd party integrations, then they will have 4 Auth0 applications.This may be excessive.

Since each customer has their own application, I am not sure if there is a better approach for allowing them to generate a token for a 3rd party.

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 12, 2020, 1:50pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/4 "2020-03-12T13:50:54Z")

</div>

Hi Calvin,

At this time, I don’t have a better answer for you. Your approach is valid.

If you don’t mind, can you make a request here: [Auth0: Secure access for everyone. But not just anyone.](https://auth0.com/feedback)  
with any ideas you have for improvement in this area (or any other)?

Thank you

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 12, 2020, 2:10pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/5 "2020-03-12T14:10:09Z")

</div>

By filing in a feature request through our product feedback form that John attached above you should be contacted by one of our product managers within 10 business days.

---

<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 27, 2020, 2:10pm UTC](https://community.auth0.com/t/providing-3rd-party-integrations-within-a-multi-tenant-environment-using-applications/39102/6 "2020-03-27T14:10:09Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
