问题
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:
- Contact your administrator and ask him/her to sign in and consent to the application
- "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