BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
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
    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

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.