MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Getting Error: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret' #123519

Open fuad47 opened 4 months ago

fuad47 commented 4 months ago

Embed Power BI for customers - sample embed error I am trying to setup Embed Power BI for customers. I have setup all credentials in config.py file under AppOwnsData folder, completed all steps mentioned in documentation. Authentification mode is 'MasterUser'. When I run that flask app ('flask run'), I get this error in the browser: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. this tip may help: according to my investigation, in aadservice.py file this line returns empty list: accounts = clientapp.get_accounts(username=app.config['POWER_BI_USER'])-->returns empty list.

Server runs at address http://127.0.0.1:5000/ . Azure authentication settings are as follows:

image_2024-06-25_122404836


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

PesalaPavan commented 4 months ago

@fuad47 It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!!

fuad47 commented 4 months ago

@PesalaPavan The link for documentation that I use: https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=python#client-id

PesalaPavan commented 4 months ago

@fuad47 Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

mberdugo commented 3 months ago

Thanks for your comment, @fuad47.

This looks like a support request or product question rather than documentation feedback.

You might find a solution in the Power BI Community. If not, try our support page.