I have done a reverse proxy to web application as example.test.com and actual address is *.*.*.56 and it's working fine when I hit example.test.com but when I added Office 365 authentication, I debug through my Java using httpRequest.getRequestURL(); command I want proxy address but I am getting the actual address as ***.***.0.56
I tried to change the URL using Java but no luck
String currentUri = httpRequest.getRequestURL().toString();
I need any solution to set up in proxy server to get the proxy address in my current URL.
and i am getting error saying in azure AAD saying but in reverse proxy it is there as example.test.com
{"error_description":"AADSTS70002: Error validating credentials. AADSTS50011: The reply address 'https://*...56:8080/abc/' does not match the reply address 'https://example.test.com/' provided when requesting Authorization code.\r\nTrace ID: gddsgc97-5667-6574g-9897h-97536vg688\r\nCorrelation ID: 565gtdf-j7573-087f-9745a-792835t647\r\nTimestamp: 2019-01-14 10:09:54Z","error":"invalid_client"}