Base solution for your next web application
Open Closed

why key "Abp.TenantId" in header not effect #12119


User avatar
0
devteambiz created

I user postman test api Authenticate. my database have 2 user same as "paichayon" but difference Tenant ,tenant default userid is 17 and tenant 2 userid is 101 i set Abp.TenantId is 2 but response body at userId is 17. it not correct!. i sent picture to you. thank you.


3 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi devteambiz

    Which user's information did you try to log in with in the body section of the TokenAuth/Authenticate post request? Could you please give some more details?

  • User Avatar
    0
    devteambiz created

    this information.

  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi devteambiz,

    Please ensure that the HttpHeaderTenantResolveContributor structure is implemented as described in the document found here. This way, the TenantId will attempt to retrieve its information from the Abp.TenantId header.