Logout Failure in ADFS 3.0 integration as an IDP in Keycloak

I am trying to implement the following scenario.

Client Application has Sign-In using ADFS button, when we click it goes to Keycloak for login request to ADFS, Keycloak sends request to ADFS on behalf of application, authenticates user and create user (if doesn’t exist) in Keycloak, then it generates an Access Token and Refresh token for the user along with user object and returns it back to client app that successfully logs in using Keycloak token.

Now, i dont know how to generate Keycloak token for Client App once user is authenticated by ADFS. I am still in phase to integrate ADFS as Identity Provider to Keycloak. For this purpose i have followed this guide:

Zerto Guide for ADFS as IDP in Keycloak

The Steps that i implemented:

  1. Integration of ADFS as an IDP in KeyCloak
  2. Configuration of ADFS and registration of KeyCloak as Relying Party Trust in ADFS for receiving claims in KeyCloak for user authentication
  3. Logging in to SP (KeyCloak Console)
  4. Synchronization of ADFS user in KeyCloak

Faced an issue while logging out of ADFS, it throws 500 and don’t route to logout page of Keycloak. I’ve checked all the steps and they are exactly as mentioned in guide. I also have followed 2,3 different guides but still stuck in this issue.

Please Can anyone provide me an easy fix to not only fix this logout issue but also use Keycloak as token provider once ADFS authentication process is done.