ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default task-14) server_error for broker login

0

I set up PingFederate as IDP for the KC to which our application is connected. after a successful login to PingFederate, there is no back to the application and I get this error:

Unexpected error when authenticating with identity provider

When checking the logs I was able to find only one error statement

[[32m05:10:09,843 DEBUG [org.keycloak.services.util.CookieHelper] (default task-4930) AUTH_SESSION_ID cookie found in the requestheader
^[[0m^[[32m05:10:09,843 DEBUG [org.keycloak.services.util.CookieHelper] (default task-4930) AUTH_SESSION_ID cookie found in the cookiefield
^[[0m^[[32m05:10:09,843 DEBUG [org.keycloak.services.managers.AuthenticationSessionManager] (default task-4930) Found AUTH_SESSION_ID cookie with value 4b329fd8-477c-45f7-824f-abd1ba87a265.keycloak-0
^[[0m^[[32m05:10:09,843 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-4930) new JtaTransactionWrapper
^[[0m^[[32m05:10:09,843 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-4930) was existing? true
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-4930) JtaTransactionWrapper  commit
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-4930) JtaTransactionWrapper end
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.transaction.JtaTransactionWrapper] (default task-4930) JtaTransactionWrapper resuming suspended
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.services.resources.IdentityBrokerService] (default task-4930) Authorization code is valid.
^[[0m^[[31m05:10:09,844 ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default task-4930) server_error for broker login oidc
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.authentication.AuthenticationProcessor] (default task-4930) AUTHENTICATE
^[[0m^[[32m05:10:09,844 DEBUG [org.keycloak.authentication.AuthenticationProcessor] (default task-4930) AUTHENTICATE ONLY
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) processFlow: browser
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) check execution: 'identity-provider-redirector', requirement: 'ALTERNATIVE'
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) execution 'identity-provider-redirector' is processed
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) check execution: 'forms flow', requirement: 'ALTERNATIVE'
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) processFlow: forms
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) check execution: 'auth-username-password-form', requirement: 'REQUIRED'
^[[0m^[[32m05:10:09,845 DEBUG [org.keycloak.authentication.DefaultAuthenticationFlow] (default task-4930) authenticator: auth-username-password-form 

Not sure of why and where the error is happening