0
andmattia created
- ABP Framework version: v5.3.1
- UI type: Angular / WinFomr
- DB provider: EF Core * Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:
- Steps to reproduce the issue:"
I try to login from winfrom using IIdentityModelAuthenticationService it works fine on host but how can I set the tenant? How can get tenat Id from name?
using (var cs = _provider.CreateScope())
{
_tenant.Change(myTenantGuid, txtTenant.Text);
AsyncHelper.RunSync(() =>
_tokenManager.ObtainAccessToken(txtUser.Text, txtPassword.Text, txtUrl.Text));
var q = AsyncHelper.RunSync(() => _appService.GetAsync());
}
1 Answer(s)
-
0
Can you check the response headers? If you are logging as a tenant user, response should have tenant information.