I also needed to setup a similar architecture: a website hosted VM (avialable in a cloud service, such as Azure or AWS) accessing views from Tableau Online. After a long investigation I couldn't make authentication work. I found to references mentioning that it is not possible to work with Trusted Authentications (at least on the current version of Tableau Online).
You can check it :
"Note: Trusted Authentication is not used with Tableau Online."