Base solution for your next web application
Open Closed

[IdentityServer4] Add filed 'tenantName' in request get token #9523


User avatar
0
pnandha created

Hi AspNetZero, I using url '/connect/token' to get token. Please let me ask how to Add filed 'tenantName' in request get token Thanks!


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

    hi pnandha

    You can pass the Abp.TenantId in the header.

    https://github.com/aspnetboilerplate/aspnetboilerplate-samples/blob/master/IdentityServerDemo/test/IdentityServerDemo.ConsoleApiTester/Program.cs#L40

  • User Avatar
    0
    pnandha created

    Hi maliming, Thanks for support. Let me ask more. I have another project (different database) with project contain IdentityServer4 (single sign on). So how to use attribute 'AbpAuthorize(@pemission)' for authentication.

  • User Avatar
    0
    maliming created
    Support Team

    hi pnandha

    You can refer to the identiyt server's document. https://identityserver4.readthedocs.io/en/latest/