Single Sign On

0
Hi, I'm working on setting up Single Sign-On (SSO) for my Mendix application, but I've encountered an issue at the final step. The app requires me to configure a redirect URI in Microsoft Azure. However, when I try to log in, I get the following error:   AADSTS50011: The redirect URI 'http://localhost:8082/oauth/v2/callback' specified in the request does not match the redirect URIs configured for the application 'ceb423cd-0f1a-4e4e-930d-3cdf63bfd2a2'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this. Here's what I've done so far: I configured the redirect URI in my Mendix application as http://localhost:8082/oauth/v2/callback. I added the same URI in the Azure portal under the Authentication section for the registered app. Despite this, the error persists. What I Need Help With: How can I ensure the redirect URI in Mendix and Azure are correctly configured and aligned? Is there something specific I need to do for local development (e.g., use HTTPS)? Are there any best practices or common pitfalls I should check to resolve this issue? Any guidance or troubleshooting steps would be greatly appreciated! (See below some pictures for clarity)  
asked
3 answers
0

Hi Matthew , 

Deploy the app in sandbox environment and configure the sandbox url. 

In local we will face this error when we integrates with azure

answered
0

Hi Matthew,

 

You have samall mistatake http://localhost:8080/oauth/v2/callback.

 

yours: /oauthv2/callback 

 

should be :/oauth/v2/callback.

 

and you can watch this video for more. it is in Turkish but it can be helpful

 

https://youtu.be/ji09bbMltjs

 

 

 

answered
0

You can never test this on localhost because Microsoft would not allow you to register an app with that URL. You might try Ngrok because then your localhost application can have an URL that is reachable from the web. But you still then need to create in Microsoft a new app registration with that Ngrok URL.

Regards,

Ronald

 

answered