public string GetUid([Service] IdentityServerService service) { return(service.SignInManager.Context.User.Identity?.GetSubjectId() ?? ""); }
public async Task <string> GetToken(string userName, string password, [Service] IdentityServerService service) { return(await service.GetToken(userName, password)); }