openid4java出错

时间:2014-04-21 14:35:41

标签: java openid openid4java

我找到了这个项目 https://code.google.com/p/idp4java取决于openId4Java

但我在运行时面临以下问题

HTTP Status 500 - org.openid4java.message.IndirectError cannot be cast to org.openid4java.message.AuthSuccess

type Exception report

message org.openid4java.message.IndirectError cannot be cast to org.openid4java.message.AuthSuccess

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.ClassCastException: org.openid4java.message.IndirectError cannot be cast to org.openid4java.message.AuthSuccess
    net.vinant.idp4java.openid4javaImpl.OpenId4JavaProtocolImplementation.checkId(OpenId4JavaProtocolImplementation.java:245)
    net.vinant.idp4java.openid4javaImpl.OpenId4JavaProtocolImplementation.handle(OpenId4JavaProtocolImplementation.java:105)
    net.vinant.idp4java.EndpointServlet.doPost(EndpointServlet.java:43)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.

1 个答案:

答案 0 :(得分:0)

我通过更改

解决了这个问题
// messageResponse = manager.authResponse(parameterList, userSelectedId, userSelectedClaimedId, true);
         messageResponse = manager.authResponse(parameterList, opLocalId, opLocalId, true);

到此代码

messageResponse = manager.authResponse(parameterList, userSelectedId, userSelectedClaimedId, true);
        // messageResponse = manager.authResponse(parameterList, opLocalId, opLocalId, true);