Forum Discussion
charly805
5 years agoNew Member
403 Error When Trying to Embed Report With PHP and Curl
Hello, This is the code that I have: <?php
$clientId = 'xxx';
$clientSecret = 'xxx';
$tenantId = 'xxx';
$urlAccessToken = "https://login.windows.net/$tenantId/...
- 5 years ago
Please make sure you are sending correct Token in the authorization header.
Also, make sure your user has all required permissions.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token
You can also refer to this blog for the same sample:
https://www.msbiblog.com/2018/01/12/power-bi-embedded-example-using-curl-and-php/
V-lianl-msft
5 years agoCommunity Support
Please make sure you are sending correct Token in the authorization header.
Also, make sure your user has all required permissions.
https://docs.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token
You can also refer to this blog for the same sample:
https://www.msbiblog.com/2018/01/12/power-bi-embedded-example-using-curl-and-php/