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)
-
0
Hi,
You can try custom a grant type to disable the tenant filter.
see: https://identityserver4.readthedocs.io/en/latest/topics/extension_grants.html