Forum Discussion
power bi embed 'this content is not available'
- 10 years ago
(My posts keep getting auto-deleted, maybe I'm not allowed to link to stackoverflow? :/)
Ayway, here are the required claims:
Required Claims ver: 0.2.0 wcn: {WorkspaceCollectionName} wid: {WorkspaceId} rid: {ReportId} aud: https://analysis.windows.net/powerbi/api nbp: Token valid not before in Unix EPOCH time exp: Token expiration in Unix EPOCH time
Thanks for the reply. This was created with the import option, so I didn't add the connection details. I would be helpful if there were some more informative error messages, as it is I'm a bit stuck.
I am getting this error message GET https://wabi-west-europe-redirect.analysis.windows.net/metadata/cluster 403 (Forbidden) Perhaps it's the created of the JWT that is causing me trouble.
- mangopop10 years agoFrequent Visitor
Here's an exampleof the JWT
`{
"wid": "c13d0a99-****-****-9d76-2a644847ddde",
"rid": "d3d8c45f-****-****-bb4f-0affe770daba",
"iss": "PowerBISDK",
"ver": "0.2.0",
"aud": "https://analysis.windows.net/powerbi/api",
"wcn": "myWCN",
"type":"embed"
}`That's all I should need to create the access token right?
- ekeijl10 years ago
Helper I
(My posts keep getting auto-deleted, maybe I'm not allowed to link to stackoverflow? :/)
Ayway, here are the required claims:
Required Claims ver: 0.2.0 wcn: {WorkspaceCollectionName} wid: {WorkspaceId} rid: {ReportId} aud: https://analysis.windows.net/powerbi/api nbp: Token valid not before in Unix EPOCH time exp: Token expiration in Unix EPOCH time- mangopop10 years agoFrequent Visitor
You are a legend, the docs say optional but they aren't!
(It's nbf not nbp!)
Thank you very much!
- ekeijl10 years ago
Helper I
I recommend that you use one of the SDKs that Microsoft provides to generate the JWT.
Example of JWT claims can be found here, documentation on this is hard to find though: https://www.npmjs.com/package/powerbi-api
I think you need to include the "nbp" (current timestamp?) and "exp" (expiration timestamp) claims as well.
- ekeijl10 years ago
Helper I
See here for the required claims: https://www.npmjs.com/package/powerbi-api
I recommend you use one of the Power BI SDKs to generate the JWT though.