diff options
Diffstat (limited to 'eaaf_modules/eaaf_module_pvp2_core')
3 files changed, 18 insertions, 2 deletions
diff --git a/eaaf_modules/eaaf_module_pvp2_core/pom.xml b/eaaf_modules/eaaf_module_pvp2_core/pom.xml index c63ff939..184c45b1 100644 --- a/eaaf_modules/eaaf_module_pvp2_core/pom.xml +++ b/eaaf_modules/eaaf_module_pvp2_core/pom.xml @@ -168,4 +168,18 @@ </plugins> </build> + + <repositories> + <repository> + <id>shibboleth-release</id> + <url>https://build.shibboleth.net/maven/releases/</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + </project> diff --git a/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/PostBinding.java b/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/PostBinding.java index 829f771a..5936258d 100644 --- a/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/PostBinding.java +++ b/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/PostBinding.java @@ -54,6 +54,7 @@ import at.gv.egiz.eaaf.modules.pvp2.impl.verification.EaafSamlProtocolMessageXml import at.gv.egiz.eaaf.modules.pvp2.impl.verification.PvpSamlMessageHandlerChain; import lombok.extern.slf4j.Slf4j; import net.shibboleth.utilities.java.support.net.URIComparator; +import net.shibboleth.utilities.java.support.primitive.NonnullSupplier; @Slf4j public class PostBinding extends AbstractBinding implements IDecoder, IEncoder { @@ -203,7 +204,7 @@ public class PostBinding extends AbstractBinding implements IDecoder, IEncoder { final PvpSamlMessageHandlerChain messageValidatorChain = new PvpSamlMessageHandlerChain(); final ReceivedEndpointSecurityHandler endpointSecurityHandler = new ReceivedEndpointSecurityHandler(); - endpointSecurityHandler.setHttpServletRequest(req); + endpointSecurityHandler.setHttpServletRequestSupplier(NonnullSupplier.of(req)); endpointSecurityHandler.setURIComparator(comparator); messageValidatorChain.addHandler(new CheckMessageVersionHandler()); diff --git a/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/RedirectBinding.java b/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/RedirectBinding.java index c66c773e..edb5608f 100644 --- a/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/RedirectBinding.java +++ b/eaaf_modules/eaaf_module_pvp2_core/src/main/java/at/gv/egiz/eaaf/modules/pvp2/impl/binding/RedirectBinding.java @@ -49,6 +49,7 @@ import at.gv.egiz.eaaf.modules.pvp2.impl.opensaml.EaafHttpRedirectDeflateDecoder import at.gv.egiz.eaaf.modules.pvp2.impl.verification.EaafSaml2HttpRedirectDeflateSignatureSecurityHandler; import at.gv.egiz.eaaf.modules.pvp2.impl.verification.PvpSamlMessageHandlerChain; import net.shibboleth.utilities.java.support.net.URIComparator; +import net.shibboleth.utilities.java.support.primitive.NonnullSupplier; public class RedirectBinding extends AbstractBinding implements IDecoder, IEncoder { @@ -174,7 +175,7 @@ public class RedirectBinding extends AbstractBinding implements IDecoder, IEncod final PvpSamlMessageHandlerChain messageValidatorChain = new PvpSamlMessageHandlerChain(); final EaafSaml2HttpRedirectDeflateSignatureSecurityHandler redirectBindingSignaturHandler = new EaafSaml2HttpRedirectDeflateSignatureSecurityHandler(metadataProvider); - redirectBindingSignaturHandler.setHttpServletRequest(req); + redirectBindingSignaturHandler.setHttpServletRequestSupplier(NonnullSupplier.of(req)); messageValidatorChain.addHandler(new CheckMessageVersionHandler()); messageValidatorChain.addHandler(redirectBindingSignaturHandler); |