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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on October 05, 2026, 11:32
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.