Forum Discussion
Anonymous
4 years agoNot applicable
Power BI Api - JWT Auth
Hey There, I hope someone can/are willing to help me out. I'm trying to connect to Power BI's API using a service principal account and I understand in order to do this I need to use a JWT t...
Anonymous
4 years agoNot applicable
Hey there,
Thank you for your response.
API service principal was already enabled.
So I'm guessing I'm missing something else.
Anonymous
4 years agoNot applicable
HI Anonymous,
According to the error message, it seems like the issue is related to the client id('iss' which you used in code), perhaps you can take a look at the following link which mentions the OAuth 2.0 client credentials and client id:
OAuth 2.0 client credentials flow on the Microsoft identity platform | Microsoft Docs
BTW, you can also try to change your aud values to the value that the document mentions if it works:
https://login.microsoftonline.com/{tenantId}/v2.0
https: //login.microsoftonline.com/{tenantId}/oauth2/token
Regards,
Xiaoxin Sheng