尝试使用Keycloak从外部IDP登录时遇到此异常。
Failed authentication: org.keycloak.authentication.AuthenticationFlowException: Not found serialized context in clientSession
at org.keycloak.authentication.authenticators.broker.AbstractIdpAuthenticator.authenticate(AbstractIdpAuthenticator.java:66)
at org.keycloak.authentication.DefaultAuthenticationFlow.processFlow(DefaultAuthenticationFlow.java:200)
at org.keycloak.authentication.AuthenticationProcessor.authenticateOnly(AuthenticationProcessor.java:853)
at org.keycloak.authentication.AuthenticationProcessor.authenticate(AuthenticationProcessor.java:722)
at org.keycloak.services.resources.LoginActionsService.processFlow(LoginActionsService.java:286)
at org.keycloak.services.resources.LoginActionsService.brokerLoginFlow(LoginActionsService.java:753)
at org.keycloak.services.resources.LoginActionsService.postBrokerLoginGet(LoginActionsService.java:687)
at sun.reflect.GeneratedMethodAccessor866.invoke(Unknown Source)
发生错误时,将显示以下页面。
我肯定知道用户凭据是正确的。我还检查了IDP的令牌映射器,一切似乎都正确。
那么这里可能是什么问题?