added a relaystate to demo
This commit is contained in:
@@ -15,6 +15,7 @@ import org.opensaml.messaging.pipeline.servlet.BasicHttpServletMessagePipeline;
|
|||||||
import org.opensaml.messaging.pipeline.servlet.HttpServletMessagePipeline;
|
import org.opensaml.messaging.pipeline.servlet.HttpServletMessagePipeline;
|
||||||
import org.opensaml.saml.common.SAMLObject;
|
import org.opensaml.saml.common.SAMLObject;
|
||||||
import org.opensaml.saml.common.binding.security.impl.SAMLOutboundProtocolMessageSigningHandler;
|
import org.opensaml.saml.common.binding.security.impl.SAMLOutboundProtocolMessageSigningHandler;
|
||||||
|
import org.opensaml.saml.common.messaging.context.SAMLBindingContext;
|
||||||
import org.opensaml.saml.common.messaging.context.SAMLEndpointContext;
|
import org.opensaml.saml.common.messaging.context.SAMLEndpointContext;
|
||||||
import org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext;
|
import org.opensaml.saml.common.messaging.context.SAMLPeerEntityContext;
|
||||||
import org.opensaml.saml.common.xml.SAMLConstants;
|
import org.opensaml.saml.common.xml.SAMLConstants;
|
||||||
@@ -90,6 +91,9 @@ public class AccessFilter implements Filter {
|
|||||||
|
|
||||||
context.setMessage(authnRequest);
|
context.setMessage(authnRequest);
|
||||||
|
|
||||||
|
SAMLBindingContext bindingContext = context.getSubcontext(SAMLBindingContext.class, true);
|
||||||
|
bindingContext.setRelayState("teststate");
|
||||||
|
|
||||||
SAMLPeerEntityContext peerEntityContext = context.getSubcontext(SAMLPeerEntityContext.class, true);
|
SAMLPeerEntityContext peerEntityContext = context.getSubcontext(SAMLPeerEntityContext.class, true);
|
||||||
|
|
||||||
SAMLEndpointContext endpointContext = peerEntityContext.getSubcontext(SAMLEndpointContext.class, true);
|
SAMLEndpointContext endpointContext = peerEntityContext.getSubcontext(SAMLEndpointContext.class, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user