Microsoft Graph does not work with ADFS?

主宰稳场 提交于 2020-01-06 21:02:08

问题


I get the following message when trying Graph Explorer.

Does Microsoft Graph support ADFS authentication?

Regard Dat.

Sign In

Sorry, but we’re having trouble signing you in. We received a bad request.

Additional technical information: Correlation ID: 61daeae5-d95b-4d2f-a32c-880021f0b437 Timestamp: 2016-07-20 21:17:14Z AADSTS90093: Calling principal cannot consent due to lack of permissions.


回答1:


Both the Microsoft Graph and the Graph Explorer leverage Azure Active Directory for authentication. Azure Active Directory can be federated to ADFS.

The error you're seeing indicates that while your account is indeed an Azure Active Directory account, you are not an administrator.

Graph Explorer requires an administrator to sign in and consent before non-administrators sign in and use it.

You have two options at this point:

  1. Contact your administrator and ask him/her to sign in and consent to the application
  2. "Manually" query the Graph via it's rest endpoint. You can find a sample of how to do this here: http://dev.office.com/getting-started/office365apis


来源:https://stackoverflow.com/questions/38491072/microsoft-graph-does-not-work-with-adfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!