Managing external identities to enable secure access for partners, customers, and other non-employees
Hi Zhang,
Thank you for posting your query on Microsoft Q&A.
This error means the redirect URI used during sign-in is not listed in your Azure app registration. Azure only accepts redirect URIs that are added exactly as they appear in the authentication request.
For example, if the sign-in flow sends users to:
https://agtivexternal.ciamlogin.com
but this URL is not added in your app registration, Azure will block the login with a redirect URI mismatch.
Steps to fix the issue:
- Copy the redirect URI from the error message The message will show the redirect URI Azure is expecting. Copy it exactly as shown.
- Add it to your app registration
- Open the Azure Portal
- Go to Microsoft Entra ID → App registrations
- Select your application
- Open Authentication
- Under Redirect URIs, add the exact URI from step 1
- Save your changes
- Make sure it matches perfectly The redirect URI must be identical, including https://, uppercase/lowercase letters, and any trailing slash.
- Clear your browser cache or use a private window Sometimes cached info causes the same error to appear even after fixing the URL.
- Try signing in again Once the correct redirect URI is added, the Microsoft Account login should work without issues.
- Under Redirect URIs, add the exact URI from step 1
- Open Authentication
- Select your application
- Go to Microsoft Entra ID → App registrations
- Open the Azure Portal
Note:
- If you have multiple environments (dev/test/prod), make sure each redirect URI is added.
- Azure does not allow wildcard redirect URIs each one must be added individually.
- The ciamlogin.com domain you’re seeing is normal in External ID/B2C flows, as long as it's part of your setup.
Microsoft documentation
I hope this information is helpful. Please feel free to reach out if you have any further questions. If the answer is helpful, please click "Accept Answer" and kindly upvote it.