Open Closed

Guide or Instructructions for setting up Tenant API access? #2679


User avatar
0
dboutwell created
  • ABP Framework version: v5.1.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

We are using the commercial module to build out our client portal, but we would like to extend certain API access to clients directly for them to consume. So, my question is:

  1. Is there a way to create an API client and tie it to a specific client?
  2. Is the functionality for managing that already in the UI?

I can see and have created OAuth2 clients in the Identity Server -> Clients section, but the documentation assumes a level of understanding of this identity server that I just do not have. So, is there a specific set of claims or anything on the "Advanced" tab that I can set inside the current UI setup in order to restrict a specific connection to a specific TenantId?


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

    Hi,

    Identity client is used for front-end (angular, mvc, blazor, console....), not Tenant.

    Is there a way to create an API client and tie it to a specific client?

    Yes, it is,

  • User Avatar
    0
    dboutwell created

    Identity client is used for front-end (angular, mvc, blazor, console....), not Tenant.

    Ok, this makes sense. So what is the recommended approach within the ABP framework if I wanted to extend some of the API functionality to tenants?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think the feature system is more suited for you, it is tenant-level.

    See https://docs.abp.io/en/abp/latest/Features

  • User Avatar
    0
    dboutwell created

    I am still confused. I have used the feature system to enable and disable certain functionality, but I'm not sure how to accomplish what you are suggesting with it. I just want to offer my customers a way to authenticate their applications and code to consume the API endpoints generated by the framework here and to take advantage of all of the fantastic work you guys did with the data filtering

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can grant some features to the tenant, Then check the feature in your app services.

  • User Avatar
    0
    dboutwell created

    Right, I get that and can do that easy enough, but how do the tenants authenticate to the API so that the TenantId and CurrentUser stuff is populated?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    ABP has Microsoft's Identity module. It supports cookies authentication. You can also customize authentication

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09