Microsoft v2 oauth Graphics Areas

I am trying to create a simple Ruby application that can connect to the Microsoft Graph API and get basic user information, such as a manager or direct reports.

I followed the 0365 tutorial and I have a working application that can receive user mail. However, when I try to use session tokens to request an api chart, I get an error message:

response.body
=> "{\r\n  \"error\": {\r\n    \"code\": \"InvalidAuthenticationToken\",\r\n    \"message\": \"Access token validation failure.\",\r\n    \"innerError\": {\r\n      \"request-id\": \"18cbc6be-5254-400c-9780-7427376587fb\",\r\n      \"date\": \"2016-06-30T22:21:55\"\r\n    }\r\n  }\r\n}" 

I use areas

SCOPES = [ 'openid', 'profile', 'https://outlook.office.com/contacts.read', 'offline_access' ] 

I was just offered to include the https://graph.microsoft.com/user.read 'area, but when I add this to the application, I get the following before getting to the user login page:

AADSTS70011: The provided value for the input parameter 'scope' is not valid. The scope openid profile offline_access https://graph.microsoft.com/user.read is not valid.

Any help on this would be appreciated!

+4
source share
1

Ok. , Outlook ( https://outlook.office.com/contacts.read) Graph ( https://graph.microsoft.com/user.read). , Azure . Outlook ( , ), : https://graph.microsoft.com/contacts.read ( ).

+7

All Articles