Hey Guys, 

I want to implement a button in the "All Solutions" View in Settings. Clicking on the button should call another D365 Instance (web api) and check if the selected Solution already exists there.

Pure Javascript would be insecure, as I would have to hardcode the login credentials in the code, which can be seen with basic debugging tools. 

I thought about a Hybrid Solution where a Plugin would get the entity data and pass it to a html webressource where it would be displayed. 

Anyone ever tried something similar? Or has some information on how to solve the authentification problem with the D365 API?

Authentification should be automated. I want to avoid a login prompt with every button click.