Azure AD:出现 AADSTS50011 错误

Azure AD: getting the AADSTS50011 error

我已经在 https://portal.azure.com and I'm trying to access it through the DNN OAuth provider. Now, I've already added the https://www.dnn.pt/Login 的回复列表 url 中注册了一个新的网络应用程序,但是每当我尝试对自己进行身份验证时,我都会收到 AADSTS50011 错误:

AADSTS50011:回复地址“https://www.dnn.pt/Login”与为应用程序配置的回复地址不匹配:'XXXXXXXX'。更多细节:未指定

顺便说一句,这是我的 replyUrls 的样子:

"replyUrls": [
   "https://wwww.dnn.pt/Login"
],

这是我用来启动身份验证过程的 URL(从 url:

中删除了租户 ID 和应用程序 ID

https://login.microsoftonline.com/{租户 ID}/oauth2/authorize?scope=email&client_id={应用程序 ID}&redirect_uri=https%3a%2f%2fwww.dnn.pt%2fLogin&state=Azure&response_type=代码

我知道我做错了什么,但有人能给我指出正确的方向吗?

谢谢大家!

如评论中所述,您的 replyUrls 中有一个额外的 w。由于此处提到的值与为 authentication/authorization 发送的 URL 中指定的值不匹配,您会收到此错误。

请将replyUrls改为:

"replyUrls": [
   "https://www.dnn.pt/Login"
],

这应该可以修复错误。