获取org.springframework.security.authentication.AuthenticationServiceException:传入的SAML消息无效

时间:2019-07-15 19:53:23

标签: spring-saml

当我尝试调用Web服务时看到以下错误

org.springframework.security.authentication.AuthenticationServiceException:
                                        Incoming SAML message is invalid
        at org.springframework.security.saml.SAMLProcessingFilter.
                    attemptAuthentication(SAMLProcessingFilter.java:88)

用于调用WebService的JSP代码:我已经添加了URL,并将“ / projectValue / Submit”添加为Get请求。

 <form action="http://localhost:8080/spring-security-saml2-sample/saml/SSO/projectValue/submit" method="GET">

              First Name: <input type="text" name="first_name">
                   <br />
               Last Name: <input type="text" name="last_name" />
                   <br>

            <input class="button" type="submit" value="Start single sign-on"/>
                        </form>

@Path(“ / projectValue”)     公共类AddToQuote {

    @GET
    @Path("/dataToSubmit")
    public Response submit(@Context HttpServletRequest request,@QueryParam("first_name") String first_name,
            @QueryParam("last_name") String last_name) throws Exception {

        String quote="XXXX";
        String jobName="XXX";

        return null;
    }

}

0 个答案:

没有答案