How to fix AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

Mikel Iturria 0 Reputation points
2023-10-30T15:05:24.8166667+00:00

Hi,

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?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,636 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.