Running the Login with Azure LS1 API on localhost it works fine, but migrating the script on the server I receive back the following error:
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application:
I know the problem is on the App settings in the Azure portal where I should change the redirect URI with the server address instead of localhost:30662 but the problem borns here: since the app has to run on a internal server with an address like 192.168.1.xxx and the Azure portal requires an address with https:// certification if different from localhost, how can I manage this to not install a SSL certificate on the local server? Is there a way to insert a redirect URI without https://?
var msalConfig = {
auth: {
clientId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
authority: "https://login.microsoftonline.com/organizations"
redirectURI: "http://192.168.1.xxx:30662"
},
cache: {
cacheLocation: "localStorage",
storeAuthStateInCookie: true
}
};
AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: