为什么我不能为url设置作用域Domain.ReadWrite.All,比如:
uri=https%3A%2F%2Flocalhost%3A44331%2F&scope=domain.readwrite.all
不管用。
uri=https%3A%2F%2Flocalhost%3A44331%2F&scope=user.read
很管用。它也适用于directory.readwrite.all和任何其他,但不适用于domain.readwrite.all。为什么会这样呢?
发布于 2019-03-05 19:32:14
Domain.ReadWrite.All是一个应用程序范围(客户机凭据流,也就是仅应用程序),您正试图在委托的auth流中获得用户对该作用域的同意。
要使用Domain.ReadWrite.All,您需要使用管理同意书端点进行管理同意,如下所示:
获取https://login.microsoftonline.com/{承租者}/adminconsent &state=12345 &redirect_uri=https://localhost/myapp/permissions
编辑:更新为domain.readwrite.all
https://stackoverflow.com/questions/54991233
复制相似问题