diff --git a/eiam-common/src/main/java/cn/topiam/employee/common/util/SamlUtils.java b/eiam-common/src/main/java/cn/topiam/employee/common/util/SamlUtils.java index 851e6abb..9f544da8 100644 --- a/eiam-common/src/main/java/cn/topiam/employee/common/util/SamlUtils.java +++ b/eiam-common/src/main/java/cn/topiam/employee/common/util/SamlUtils.java @@ -189,14 +189,14 @@ public class SamlUtils { try { if (request.getMethod().equals(POST_METHOD)) { HTTPPostDecoder decoder = new HTTPPostDecoder(); - decoder.setHttpServletRequest(request); + decoder.setHttpServletRequestSupplier(() -> request); decoder.initialize(); decoder.decode(); return decoder.getMessageContext(); } //GET HTTPRedirectDeflateDecoder decoder = new HTTPRedirectDeflateDecoder(); - decoder.setHttpServletRequest(request); + decoder.setHttpServletRequestSupplier(() -> request); decoder.initialize(); decoder.decode(); return decoder.getMessageContext();