I'm struggling with the definition of an action in category theory, this is nLab's definition:
An action of a group $G$ on an object $x$ in a category $C$ is a representation of $G$ on $x$, that is a group homomorphism $\rho : G \to Aut(x)$, where $Aut(x)$ is the automorphism group of $x$.
As indicated above, a more sophisticated but equivalent definition treats the group $G$ as a category denoted $\mathbf{B} G$ with one object, say $*$. Then an action of $G$ in the category $C$ is just a functor $$\rho : \mathbf{B} G \to C.$$
Here the object $x$ of the previous definition is just $\rho(*)$.
The definition indicating that each object in $G$ specifies an automorphism on $x$ makes sense to me, but I don't understand how this is equivalent to a functor that just identifies $x$.
And from Category Theory in Context:
Let $G$ be a group, regarded as a one-object category $\mathbf{B} G$. A functor $X : \mathbf{B} G \to C$ specifies an object $X \in C$ (the unique object in its image) together with an endomorphism $g^∗ : X \to X$ for each $g \in G$. This assignment must satisfy two conditions:
(i) $h^∗g^∗$ = $(hg)^∗$ for all $g, h \in G$.
(ii) $e^∗ = 1_X$, where $e \in G$ is the identity element.
This sounds like the second definition from nLab, except that it adds the endomorphism $g^*$, which seems to make it more compatible with the $\rho : G \to Aut(x)$ definition. How are these two definitions equivalent?