更新WSO2 IS后认证间歇性失败



使用U2更新WSO2 IS后,当我尝试登录我的SP时,我可以看到以下间歇性调试日志。

TID: [-1234] [] [2022-12-05 22:13:30,322] [bcc826e3-5dcf-4a14-8048-6fd6b59d4599] DEBUG {org.wso2.carbon.identity.application.authentication.framework.AbstractApplicationAuthenticator} - Error occurred during the authentication process, hence retrying. org.wso2.carbon.identity.application.authentication.framework.exception.InvalidCredentialsException: User authentication failed due to invalid credentials
...
at org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator.processAuthenticationResponse(BasicAuthenticator.java:699)
at org.wso2.carbon.identity.application.authentication.framework.AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticator.java:89)
at org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator.process(BasicAuthenticator.java:141)
at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.doAuthentication(DefaultStepHandler.java:512)
at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handleResponse(DefaultStepHandler.java:486)
at org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handle(DefaultStepHandler.java:180)
at org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handle(DefaultStepBasedSequenceHandler.java:186)
at org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.GraphBasedSequenceHandler.handle(GraphBasedSequenceHandler.java:113)
at org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:159)
at org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:249)
at org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doPost(CommonAuthenticationServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
...

我无法在浏览器中进入我的SP。我该如何解决这个问题?

如果您使用WUM或U2工具更新了IS,则可能发生上述问题。如果通过浏览器打开应用程序的网络跟踪器,可以看到在加载jQuery库时出现错误。这是这个间歇性错误的根本原因。要解决这个问题,您应该替换每个包含

.jsp文件(位于<IS_HOME>/repository/deployment/server/webapps

目录中)<script type="text/javascript" src="libs/jquery_3.4.1/jquery-3.4.1.js"></script>with

<script type="text/javascript" src="libs/jquery_3.6.0/jquery-3.6.0.js"></script>

是jQuery库的新版本。

目前,上述问题发生在jQuery 3.4.1中,它可以通过替换与jQuery加载相关的script标签来修复。但是如果jQuery的版本改变了,你必须通过浏览webapps来找到准确的jQuery版本。

最新更新