【问题标题】:Intermittent authentication failures after updating WSO2 IS更新 WSO2 IS 后间歇性身份验证失败
【发布时间】:2022-12-18 01:12:43
【问题描述】:

使用 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。 我怎样才能解决这个问题?

【问题讨论】:

    标签: wso2 wso2-identity-server


    【解决方案1】:

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

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

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

    这是 IS 中 jQuery 库的新版本。

    要检查更新后的 IS 的每个 Web 应用程序的确切 jQuery 版本,您可以在 <IS_HOME>/repository/conf/webapps/<WEB_APP>/libs 目录中找到它们。

    目前,上述问题出现在 jQuery 3.4.1 中,可以通过替换与 jQuery 加载相关的 script 标签来解决。但是如果 jQuery 版本发生变化,您必须通过 webapps 找到确切的 jQuery 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-13
      • 2018-11-11
      • 1970-01-01
      • 2022-10-20
      • 1970-01-01
      • 2016-12-31
      • 1970-01-01
      • 2016-02-07
      相关资源
      最近更新 更多