Is there a way to impose current with an amplifier?
I am trying to design a circuit to drive an inductor, and I need to
set an out put current flowing through the inductor, and I want to set
it no matter the resistance on the output.

You cannot instantly force current into an inductor without infinite voltage. You can set the scene in terms of voltage so that the current in the inductor ramps towards the required value: -
$$\dfrac{di}{dt} = \dfrac{V}{L}$$
But, that's about all you can really do.

I'm thinking about adding a shunt on the output and inject that in a
difference amplifier before the current amplifier, but is that a good
way to do so ?

That will produce a constant current output into a resistor but, for an inductor, the amplifier will end-stop against the power rails for a moment while the inductor plays catch-up as per the above formula. When the amplifier is railed all you can do is respect the more commonly seen version of the above formula: -
$$V = L\dfrac{di}{dt}$$