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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00