I ran the example 'spring-security-saml2-sample.war' successfully, but now I have a problem with redirection address of 302 Response of HTTP (Location header) for discovery - it is always set to http://localhost/spring-security-saml2-sample/..., How can I changed to my public server address?
I found such code in SAMLEntryPoint class:
Thanks in advance,
I found such code in SAMLEntryPoint class:
Code:
String contextPath = (String)context.getInboundMessageTransport().getAttribute("localContextPath");
discoveryURL = contextPath + discoveryUrl + "?" + "returnIDParam" + "=" + "idp" + "&" + "entityID" + "="
+ context.getLocalEntityId();