Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi all,
Recently built an app using the "embed for your customers" ASP.NET Core sample app (Microsoft Tutorial). I'm hoping to use service principal authentication instead of master user, as it seems service principal is recommended for a production-quality embedding solution. I followed all of the applicable steps in the tutorial, and in this guide specifically for service principal too.
The issue we're seeing is that the sample app always displays the following for the iframe:
In the Dev Tools, I can see that the app is sending GET requests to this endpoint:
And the response is always a 401 Unauthorized with this body:
{
"error": {
"code": "PowerBINotLicensedException",
"pbi.error": {
"code": "PowerBINotLicensedException",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}
Regarding licensing, the docs state that service principal "Doesn't require a Pro license. You can use content from any workspace that you're a member or an ad..."
Considerations:
I am already able to get master user to work both locally and on our production environment. However, I have had no success with service principal on either so any guidance would be appreciated.
Please don't hesitate to let me know if I should supply any more information or if anything is unclear!
Solved! Go to Solution.
Hi @rcvink ,
Currently service principals are not supported in PPU, you can find this official documentation for the details. You can select the related workspace and choose "Workspace settings" to revert to Pro mode if there is no feature of PPU be involved in this workspace, then check whether it can work normally....
Best Regards
Hi @Anonymous
Thanks for your response. I can confirm that service principal does work if I set the workspace licence mode to 'Pro'.
Unfortunately we're hoping to use certain features that aren't included in Pro, for example Deployment Pipelines, and Dataflows.
Would it be correct to therefore say I must use master user authentication if I want to point at a Premium Per User workspace?
Would it be any different in 'Embedded' license mode (as seen in your screenshot)? Like would we be able to use Service Principal authentication?
I'll accept your response as the solution.
Hi @rcvink ,
Currently service principals are not supported in PPU, you can find this official documentation for the details. You can select the related workspace and choose "Workspace settings" to revert to Pro mode if there is no feature of PPU be involved in this workspace, then check whether it can work normally....
Best Regards
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
3 |
User | Count |
---|---|
13 | |
9 | |
5 | |
4 | |
4 |