Shinytableau package : "Log in to see this content" error

Hello All,

I have followed all the steps mentioned in the article for creating extensions for Tableau using Shiny.

I deployed shinytableau extenion to our internal RConnect server. However I was not able to connect the trex file downloaded from RConnect. It keeps on saying "Log in to see this content" in Tableau after I read trex file.

It never logs me in the Tableau after I click on Log in button. A separate webpage opens up and asks for credentials and it logs me in the RConnect server but not in Tableau