I guess I just have to set 'IsPersistent' to true
AuthenticationManager.SignIn(new AuthenticationProperties { IsPersistent = rememberMe }, identity);
Ok I think I've found the config code for API token.
AccountController : AbpApiController
var currentUtc = new SystemClock().UtcNow;
ticket.Properties.IssuedUtc = currentUtc;
ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));
Still looking for the cookie expiry
From Register code in AccountController, I need to access a AppService logic that is protected by AbpAuthorize. But since the user is new, Apb session is blank, new user also does not have the permission to perform certain actions. What is the right way to temporarily escalate permission? Or programatically set AbpSession?
How to call a AppService from AccountController.cs ?
I have this exact same problem. The public registration of Tenant means that the request has no permissions attached. I don't know how to "static roles of the tenant, admin user of the tenant (and assign admin role to the admin user) in one service call." when the RoleManager and UserManager are not resolved properly.
What is the best way to implement public registration of new Tenants?