Open Closed

how to get the correct token in multitenant react app. #1961


User avatar
0
chris.tune@gmail.com created

Hi

Our devs have created a react app which connects to ABP.IO using identity server. We are using subdomains to identity each tenant.

site1.oursite.com site2.oursite.com

When a user logs in to site1 the token is returned and used from the app If we then switch to site2 we login again and get a token for that as well.

Then if we switch between the sites the token endpoint returns the same token

We are using /connect/token to get the token and supplying the redirect _url etc. But should we be sending something else to identity the tenant, such as a header or query string?

Thanks


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes, you need.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15