Open Closed

Particular Api call for User Authentication without tenantId #2404


User avatar
0
KuldeepRathi created

We have a requirement of authenticating users with username and password only. we want to disable the tenant query filter for a particular API call (/connect/token) and return tenantId when we access in the token. This filter should not be disabled always.

Example:- in one application, only access the tenant admin. but our the requirement is user does not select the tenant from the dropdown or do not enter tenant name, use only enter the username and password Requirement:- without tenant id validate the tenant admin based on username and password, return tenantId from the user info endpoint, so we can validate the tenantId and role to validate access


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

    Hi,

    You can try custom a grant type to disable the tenant filter.

    see: https://identityserver4.readthedocs.io/en/latest/topics/extension_grants.html

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11