Outlook App - ADAL Authentication - AADSTS90056: This endpoint only accepts POST requests

不问归期 提交于 2019-12-23 10:58:27

问题


I'm working on an Outlook Add-in which authenticates the user against Azure AD and runs queries against SharePoint Online sites. The app uses AngularJS and makes use of the ADAL.js and ADAL-Angular.js libraries to conduct the authentication process. The app works well within the browser, however fails during the authentication process when used through the Windows Version of Outlook.

Once the user inputs his username and password within the add-in in Outlook (Windows), and Internet Explorer window pops up with the message below:

AADSTS90056: This endpoint only accepts POST requests.

Screenshot of error

Has anyone encountered this issue? I've followed the Office Dev tutorials (below) to the letter, but still no luck...

https://github.com/OfficeDev/O365-Angular-GettingStarted


回答1:


I was getting same error while trying to get access token for Microsoft Azure Active directory. the problem was url.

using https instead of http solved my problem.

my correct url for token as follows: "https://login.microsoftonline.com/"



来源:https://stackoverflow.com/questions/38512081/outlook-app-adal-authentication-aadsts90056-this-endpoint-only-accepts-post

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