🌐 Understanding Proxy, Bypass & Calling Azure Token URL from Private Network 1️⃣ What is a Proxy? 🤔 A proxy server acts as an intermediary between your computer (or app) and the internet. It forwards your requests and responses to control or monitor network traffic, improve security, or cache content. In private networks (like company intranets), direct internet access might be blocked. All outgoing calls must go through a proxy to access external services (e.g., Azure token endpoint). 2️⃣ Why do we need to configure or bypass Proxy? 🛑 When your app tries to call https://login.microsoftonline.com/{tenant}/oauth2/token , but you are inside a private network, the call may fail if proxy is not configured properly. Depending on your company's network setup, you might: Configure proxy in your Java app so the call goes through proxy. Bypass proxy for certain URLs if proxy blocks or slows down calls. Set proxy globally in the container or JVM envi...
A cozy space where I share my daily Java learnings, issues, and solutions.