简体   繁体   English

使用 MSAL.js 时如何解决“未提供回复地址”错误?

[英]How do I resolve a “No reply address provided” error when using MSAL.js?

I've copied the example app at this repository to try to implement single sign-on: https://github.com/Azure-Samples/ms-identity-javascript-v2 .我已复制此存储库中的示例应用程序以尝试实现单点登录: https://github.com/Azure-Samples/ms-identity-javascript-v2

Into the msalConfig's auth object within the authConfig.js file I substituted my application's clientId and authority values, and used a redirectUrl value of "http://localhost:5500" since I need to test this locally first.在 authConfig.js 文件中的 msalConfig 的 auth object 中,我替换了我的应用程序的 clientId 和权限值,并使用了“http://localhost:5500”的 redirectUrl 值,因为我需要先在本地进行测试。

I'm getting the appropriate SSO popup that processes and then halts with the following error:我得到了适当的 SSO 弹出窗口,该弹出窗口处理然后停止并出现以下错误:

AADSTS900971: No reply address provided. AADSTS900971:未提供回复地址。

Is there a server-side setting that has to be in place for this to work?是否有一个服务器端设置必须到位才能正常工作? Can this be tested from localhost (or 127.0.0.1) on my machine?这可以在我的机器上从本地主机(或 127.0.0.1)测试吗?

Summary comments are posted as answers.摘要评论作为答案发布。

Like I said in the comments, you need to ensure that the redirectUrl configured in the authConfig.js file is consistent with the redirectUrl configured in Azure AD .就像我在评论中说的,需要确保authConfig.js文件中配置的redirectUrlAzure AD中配置的redirectUrl一致。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 Javascript 客户端应用程序与 MSAL.js 一起使用时,如何在受保护的 API 的访问令牌中获取应用程序角色声明(角色) - How to get app role claims (Roles) in access token to protected API when using Javascript client app with MSAL.js 使用 msal.js 通过 Azure Active Directory 登录时无法获取令牌 - Can't get token when log in with Azure Active Directory using msal.js 使用B2C在Javascript / Angular 6 SPA应用程序中通过MSAL.JS注销的错误 - Error in Logout through MSAL.JS in Javascript / Angular 6 SPA application using B2C 如何在 24 小时后使用 MSAL.js 刷新 azure b2c 中的访问令牌? - how to refresh the access token in azure b2c using MSAL.js after 24 hours? 如何使用适用于 Azure DevOps 的 MSAL.js 获取有效的 AAD v2 令牌 - How to get valid AAD v2 token using MSAL.js for Azure DevOps Angular 8 与 Azure B2C 身份验证(使用 MSAL.js) - Angular 8 with Azure B2C Authentication (using MSAL.js) ReactJS的adal.js或msal.js - adal.js or msal.js for ReactJS 使用 MSAL.js 和 Azure Active Directory - 如何将身份验证令牌传递给承载策略 - Securing REST API Calls in SPAs using MSAL.js with Azure Active Directory - How to Pass Authentication Token to Bearer Strategy msal.js 在移动浏览器上有问题 - msal.js has issue with mobile browsers msal.js访问令牌中的自定义声明 - Custom claims in msal.js access token
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM