An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hi Amy Zhang,
Thank you for posting your question in the Microsoft Q&A forum
Register the APIM instance and your MCP server in Azure AD as applications with proper redirect URIs.
Configure APIM with OAuth 2.0 Authorization Server tied to Azure AD.
Ensure Claude Code is set up to handle OAuth 2.0 Authorization Code Flow and support the browser pop-up for interactive sign-in.
Check redirect URI used by Claude Code matches the APIM OAuth server configuration.
Use refresh tokens and caching tokens to enable token reuse.
Yes, OAuth 2.0 Authorization Code Flow with a browser pop-up is supported by APIM and Microsoft Entra ID. While documentation directly involving Claude Code with APIM OAuth pop-up is limited, the standard OAuth flow should apply. Recommended configuration involves proper Azure AD app registrations, APIM OAuth server setup, and matching redirect URIs. Troubleshooting should focus on OAuth app settings, redirect URI correctness, and client ability to handle browser-based auth.
References