Java SAML登录错误“;“未找到SAML响应”;
我已经为我的应用程序实现了SAML支持。我使用了OneLogin中的JavaSAML。 我正在测试用户直接访问acs的场景,在这种情况下,理想情况下应该将用户重定向到登录页面,但我面临以下错误Java SAML登录错误“;“未找到SAML响应”;,java,saml,onelogin,Java,Saml,Onelogin,我已经为我的应用程序实现了SAML支持。我使用了OneLogin中的JavaSAML。 我正在测试用户直接访问acs的场景,在这种情况下,理想情况下应该将用户重定向到登录页面,但我面临以下错误 com.onelogin.saml2.exception.Error: SAML Response not found, Only supported HTTP_POST Binding at com.onelogin.saml2.Auth.processResponse(Auth.java:77
com.onelogin.saml2.exception.Error: SAML Response not found, Only supported HTTP_POST Binding
at com.onelogin.saml2.Auth.processResponse(Auth.java:772)
at com.onelogin.saml2.Auth.processResponse(Auth.java:782)
下面是代码片段
Auth auth = new Auth(request, response);
auth.processResponse();
if (!auth.isAuthenticated())
{
out.println("<div class=\"alert alert-danger\" role=\"alert\">Not authenticated</div>");
<a href="dologin.jsp" class="btn btn-primary">Login</a>
}
Auth Auth=new Auth(请求、响应);
auth.processResponse();
如果(!auth.isAuthenticated())
{
out.println(“未认证”);
}
处理这个问题的理想方法是什么?目前我所关注的工作是使用try-and-catch块