Closed ashwinnatty closed 6 years ago
Hi @ashwinnatty the sample that you are linking to is written in C#. Are you aware of azure-activedirectory-library-for-dotnet? Can you share the Java code you are using to acquire the token?
Closing due to inactivity. Feel free to re-open.
I am trying to user Power BI embed (app owns data) and the documented way to generate access token is to use user and password. Please refer below https://docs.microsoft.com/en-us/power-bi/developer/get-azuread-access-token Go to section : Access token for non-Power BI users (app owns data)
But when i try to generate one using the Java library, it gives an error saying "{"error_description":"AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'.\r\nTrace ID: 3ff19d0e-07b9-426f-a698-7883c9b11200\r\nCorrelation ID: 705bc7ba-0003-4710-80ed-0104e723cbab\r\nTimestamp: 2018-01-21 07:37:05Z","error":"invalid_client"}"
Please help