Ошибка с 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 ответ
Решение
Я решил проблему, изменив
// 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);