如何添加 TSI 范围与特定于资源的范围

How to add TSI scope combined with resource-specific scopes

我正在尝试授权用户使用我构建的 python flask 应用程序。我使用 flask dance azure 蓝图并定义范围来访问用户信息。我尝试为 TSI 添加范围,如下图所示 enter image description here. This blueprint normally generates an access token. This access token with which we have defined the TSI scope can be used to authenticate the user against the TSI . But this returns a error. enter image description here 请指导我如何将 TSI 范围添加到访问令牌的现有范围

有趣的是,您是否尝试过删除 TSI 范围?该错误似乎非常具有描述性,我猜 .default TSI 范围不能与与图形相关的其他范围结合使用。也就是说,不允许您获得处理图形相关范围和 TSI 范围的单个令牌。

也就是说,我对 make_azure_blueprint 函数、flask、dance 等一无所知,这可能更像是您解决此问题所需要的。所以你的问题可能更像是“我如何使用 flask dance make_azure_blueprint 获得多个 API 范围”,因为我不认为这是特定于 TSI