嵌入的powerbi:无效的授权:required_required

问题描述

我正在尝试从PowerBI REST API获取Bearer令牌以嵌入报告。 我按照在视频及其周围发现的所有步骤进行操作,但是仍然出现了问题,因为我得到了“无效的授权”子错误:“需要同意”。 这里的所有步骤

  1. 在powerBI中创建工作区

enter image description here

  1. 创建报告

    enter image description here

  2. 保存报告

enter image description here

  1. 注册应用。 (首页网址,这有关系吗?我写了一个假的。这是问题吗?)

enter image description here

  1. 成功,记下ID

enter image description here

  1. azure:注册应用

enter image description here

  1. API权限(请注意,授予管理员同意已被选中为活动状态,我没有按钮)

enter image description here

  1. 邮寄电话:赠款无效

enter image description here

不知道该怎么办。除了我以外,每个人似乎都在工作...

解决方法

当您尝试使用“为组织嵌入”时,不需要应用程序的管理员权限。

您应在应用程序“身份验证”页面上的“隐式授予”下打开“访问令牌”:

Azure portal Authentication page

但是,我不确定您要做什么,无法从Power BI REST API获取Bearer令牌,如果您使用的是“为您的客户嵌入”

您可以在此处看到两者的示例:https://github.com/microsoft/PowerBI-Developer-Samples/