Recommender systems offer an efficient solution to the problem of information overload, which is exacerbated by the rapid expansion of data. Context-aware recommender systems (CARS) have become prominent, incorporating contextual information to provide more desirable recommendations. While the dimension of contextual information rises, the complexity of algorithms increases as well, highlighting the data sparsity problem. In this paper, we propose CTITF, a novel tensor factorization model that incorporates constrained user bidirectional trust and implicit feedback. First, CTITF distinguishes the roles of trust networks in terms of the directionality of trust relationships: the trustor and the trustee. CTITF then constructs trust influences and biases for both roles to linearly represent user preferences. Furthermore, CTITF improves the rating prediction function and recommendation objective function based on CP factorization. Finally, CTITF filters out trust relationships where users do not have the same history items. It also uses contextual information to limit the amount of implicit feedback, addressing the issue of high time complexity. Experiments on two real-world datasets illustrate that the proposed model outperforms previous TF-based models and social recommender systems in terms of rating prediction accuracy. In addition, the CTITF model reduces the training time by 50.28% compared to the trustTF model, which also uses trust.