Hello @liangshiwei
Sorry, I think you could not understand the requirement.
Volo.Abp.Account.Public.Web.Areas.Account.Controllers.AccountController
is being used for api/account/login
You were pushing me into another direction.
We are not using IIS or Azure App Service. Its AWS load balancer pointing to Ec2 server that is running API on it. The load balancer only forwards requests to the ec2. That's our scenario.
Secondly, We made a sample project using abp suite then published and run it at http://localhost:5000 we faced the same project. If possible please a call or teamviewer session or allow me to send you sample project to check it.
Kindly reply at your earliest, We are stuck into a point further development is halted.
Hi,
there is no such AddResourceOwnerValidator
in
PreConfigure<IdentityBuilder>(identityBuilder =>
{
identityBuilder.AddResourceOwnerValidator<MyAbpResourceOwnerPasswordValidator>();
});
Secondly I configured it as and it never hits on api/account/login
call
PreConfigure<IIdentityServerBuilder>(identityServerBuilder =>
{
identityServerBuilder.AddResourceOwnerValidator<CustomAbpResourceOwnerPasswordValidator>();
});
Can you please check it one more time and guide.
Secondly What if we use OpenIddict
then How it can be managed?
IdentityServer
Can you please respond quickly Thanks
I think you did not understand the requirement.
We want to let users login via API call (without redirecting them to identity server).
There is login api api/account/login
Payload
{ "userNameOrEmailAddress": "emailAddress", "password": "string", "rememberMe": true }
User may be belong to any tenant. When login request come, we want to learn their tenant and resolve it. Here is the sample code which we added custom login page for identity server.
We want to implement same kind of logic on Login api call.