Outlook App-ADAL身份验证-AADSTS90056:此终结点仅接受POST请求 [英] Outlook App - ADAL Authentication - AADSTS90056: This endpoint only accepts POST requests
问题描述
我正在使用一个Outlook加载项,该加载项根据Azure AD对用户进行身份验证,并针对SharePoint Online网站运行查询.该应用程序使用AngularJS,并利用ADAL.js和ADAL-Angular.js库进行身份验证过程.该应用程序在浏览器中运行良好,但是在通过Windows版本的Outlook使用时,在身份验证过程中失败.
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.
一旦用户在Outlook(Windows)的加载项中输入用户名和密码,Internet Explorer窗口就会弹出,并显示以下消息:
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:此终结点仅接受POST请求.
AADSTS90056: This endpoint only accepts POST requests.
有人遇到过这个问题吗?我遵循了这封信的Office Dev教程(如下),但仍然没有运气...
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
推荐答案
尝试获取Microsoft Azure Active Directory的访问令牌时遇到相同的错误.问题是url
.
I was getting same error while trying to get access token for Microsoft Azure Active directory. the problem was url
.
使用https
而不是http
解决了我的问题.
using https
instead of http
solved my problem.
我对令牌的正确网址如下:
"https://login.microsoftonline.com/"
my correct url for token as follows:
"https://login.microsoftonline.com/"
这篇关于Outlook App-ADAL身份验证-AADSTS90056:此终结点仅接受POST请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!