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
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.
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!
- dhirujadhav9 years agoRegular Visitor
It was working for me till today but it stopped working all of a sudden for some of my clients -- can you please share what you think what might have gone wrong
- dhirujadhav9 years agoRegular Visitor
It was working for me till today but it stopped working all of a sudden for some of my clients -- can you please share what you think what might have gone wrong
- 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.