问题
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