Spring Boot SAML Authentication Issue with Identity Provider (IdP) on Virtual Machine

Copper Contributor

I am developing a Spring Boot application with SAML-based Single Sign-On (SSO) authentication, using an Identity Provider (IdP) such as Azure (Microsoft Entra ID). I have configured the IdP with the application and used a proxy to communicate my application with the IDP, which is running at http://localhost:8080. Everything works fine locally. Azure Active Directory (AAD)

The problem arises when I deploy the same Spring Boot project on a virtual machine (VM) to run it. The VM address is http://XX.Y.Z.WW:8080/. Since the IdP is configured with the ACS location as http://localhost:8080/login/saml2/sso/adfs.

I have attempted to configure the IDP with the VM address (http://XX.Y.Z.WW:8080) but it only accepts addresses with 'localhost'. Is there a workaround or solution to achieve the same behavior on the VM? How can I configure the IdP or Spring Boot application to handle this scenario properly?"

Is there a solution to achieve the same behavior on the VM? How can I configure the IdP or Spring Boot application to handle this scenario properly?.

AuthenticationAzure Active Directory (AAD)AzureSSO

0 Replies