How to authenticate against an external account automatically?

A Score Level 2

I want to be able to authenticate against an external account without having to manually enter the accounts credentials. Appian has an example to authenticate using a link. However, this forces the user to enter the credentials on an external system in order to have access to such connection. What I want to do is to have that authentication be done in the background without the need for the link. In most cases the users won't have access to the credentials, so I would like to store that in a document or constants so when they navigate to the interface it is done for them.

For clarity, the specific component I'm working with is the Power BI plugin which requires the connection to be authenticated every time is used for each user. However, I don't think the above request is specific to my case and there could be a generic way of doing this.

Has anyone run into this scenario and found a solution? 

 Discussion posts and replies are publicly visible