How to authenticate to device API when using official mender client

This post provides the answer, I would say.