Quantcast
Channel: Spring Community Forums - SAML
Viewing all articles
Browse latest Browse all 52

Static localhost address

$
0
0
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:

Code:

String contextPath = (String)context.getInboundMessageTransport().getAttribute("localContextPath");
discoveryURL = contextPath + discoveryUrl + "?" + "returnIDParam" + "=" + "idp" + "&" + "entityID" + "="
                + context.getLocalEntityId();

Thanks in advance,

Viewing all articles
Browse latest Browse all 52

Trending Articles