An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hello Kishan Mohan Nallajerla,
Based on the error you’re seeing (ERR_INVALID_RESPONSE during the authorization_code flow), this is most commonly caused by a redirect URI mismatch in the client app registration.
Could you please verify the following:
- Redirect URI Ensure the redirect URI configured in your client app exactly matches: https://.developer.azure-api.net/signin-oauth/code/callback/ Even a small mismatch (missing path, HTTP vs HTTPS, or incorrect auth server name) can cause this error.
- Authorization Endpoint Confirm you are using the tenant-specific endpoint: https://login.microsoftonline.com//oauth2/v2.0/authorize (avoid using /common during testing)
Validate Flow Outside APIM Try accessing the authorization URL directly in a browser or via Postman to confirm whether the issue is with the app registration or API Management configuration.
Browser Debugging Open Developer Tools → Network tab and check for failed redirects or blocked responses during login.
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.