Search code examples
azurelocalhostsingle-sign-onmsal.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.

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.

I'm getting the appropriate SSO popup that processes and then halts with the following error:

AADSTS900971: No reply address provided.

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?


Solution

  • 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.

    enter image description here