简体   繁体   中英

WSO2 integration with Azure AD - 403 when accessing https://outlook.office365.com/api/v2.0/me

Currently I'm working on integration of WSO2 (5.8.0) and AzureAD using Office365 authenticator (ver. 1.0.6). I see in the logs that authenticator is at least doing something but from Azure side Im getting exception:

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://outlook.office365.com/api/v2.0/me

On Azure I set delegated permissions to Exchange APIs checking everything in my application. I also checked Graph API but still without success. What permission should be granted to allow my app to access https://outlook.office365.com/api/v2.0/me ?

To access https://outlook.office365.com/api/v2.0/me , you will need https://outlook.office365.com/User.Read permission.

在此处输入图片说明

And you need to add the access token in the request header. If you have done this all correctly, please show us how you got the access token.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM