Aperto Chiuso

Multitenant filter on TenantId from API #1550


User avatar
0
rick@i-pulse.nl creato

Hi,

We developed a productservice which is Multitenant. Managing this in the webportal works good and when I login as tenant, the products are saved under that tenant. For external applications we created the API client credentials and we are able to do API calls. But with this authorization no tenant setting/validation is done.

Is there an easy way that we can manage this out-of-the-box? I can add a tenantId in every request, but I was wondering if this is managed by ABP by default.


2 risposte
  • User Avatar
    0
    gterdem creato
    Team di supporto Senior .NET Developer

    For external applications we created the API client credentials and we are able to do API calls.

    Since you are making external calls, there is no default handling for it. Base way is to add tenantId to requests headers manually as you have mentioned.

  • User Avatar
    0
    ServiceBot creato
    Team di supporto Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11