I want to embed a powerBI report in my webpage using "Master User" login in NodeJS, with username and password. Using as example the code Microsoft posted on Github https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/NodeJS/Embed%20for%20your%20customers/AppOwnsData/src/authentication.js I added the needed configuration files but when I want to get the access token using
getAccessToken I receive the next error:
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
I have been reading some forums and they talk I have to allow the login in Azure Apps, but I don't really know if I have to do that for embedding a powerbi report, I just want to log in dinamically to get the access token using the example on Github
Can you help me please?