I can certainly say this isn’t the correct way to go. Are you already using a plugin, or only interacting via HTTP?
If you’re using a plugin, you should not be interacting with app/controllers/ instances, for the most part.
If you’re interacting over HTTP, and using server-to-server communication, you would be better served with an Admin-created API key.
The User API is intended for client-to-server communication, where there is no way of providing code integrity over the client.