You need an affine transformation to relate the coordinate on the plane of the ellipse to the world coordinates. It is rather straight forward to obtain this transformation. Let $c = \dfrac{1}{2} |AB| $, then local coordinates of $A$ and $B$ are
$ A' = (-c, 0, 0)$
$ B' = (c, 0, 0) $
The coordinate frame has its origin $O'$ at the midpoint of $A$ and $B$:
$O' = \dfrac{1}{2} ( A + B ) $
And it $x'$ unit vector along $AB$, i.e.
$ u_1 = \hat{x}' = \dfrac{B - A}{\| B - A \|} $
The $z'$ axis is along the cross product of $AB$ and $AC$, and this points in a direction that is perpendicular to the plane of the ellipse. So,
$ u_3 = \hat{z}' = \dfrac{ AB \times AC }{\| AB \times AC \| } $
And finally the $ y'$ unit vector is obtained from the cross product of $u_3$ and $u_1$:
$ u_2 = \hat{y}' = u_3 \times u_1 $
Now if the $r$ is the world coordinate of a point in space and $r'$ is its coordinate with respect to the local coordinate frame we just created, then
$ r = O' + R \ r' $
where the $3 \times 3$ rotation matrix $R$ is given by
$ R = [u_1, u_2, u_3] $
Now we can work in the local coordinates, specifically in the $x'y'$ plane, which is the plane of the ellipse. The two foci are $A'$ and $B'$
The local coordinates of the known point $C$ is
$C' = R^T (C - O') $
The ellipse constant length is given by
$ L = 2 a = \| A' C' \| + \| B' C' \| = \| AC \| + \| BC \| $
$a$ is the length of the semi-major axis. The length of the semi-minor axis is given by
$ b^2 = a^2 - c^2 $
Now the equation of our ellipse in local coordinates $x'$ and $y'$ is
$ \dfrac{x'^2}{a^2} + \dfrac{y'^2}{b^2} = 1 $
Points on the ellipse can be parametrized as follows
$ (x', y', z') = ( a \cos t , b \sin t , 0 ) $
Finally, to obtain the world coordinates of the points, we use the affine transformation,
$\begin{equation} \begin{split}
\begin{bmatrix} x \\ y \\ z \end{bmatrix} &= O' + R \ \begin{bmatrix} x'\\ y'\\ z'\end{bmatrix} \\ &= O' + [u_1, u_2, u_3] \begin{bmatrix} a \cos t \\ b \sin t \\ 0 \end{bmatrix} \\ &= O' + a \cos t \ u_1 + b \sin t \ u_2 \end{split} \end{equation} $