Setting up ADFS as OIDC identity provider

Hi, I am trying to integrate ADFS with Keycloak. Have followed the keycloak instructions to add Identity Provider but whenever I try to login to the console using ADFS its giving me the error “Unexpected error when authenticating with identity provider” and in the logs i can see below errors
2023-06-06 10:19:51,464 WARN [org.keycloak.events] (executor-thread-407) type=IDENTITY_PROVIDER_LOGIN_ERROR, realmId=6d20a2a6-761a-4445-83a7-8e201bb57c98, clientId=account-console, userId=null, ipAddress=10.0.151.80, error=identity_provider_login_failure, code_id=2ea6c7a2-a908-4699-8996-16d984c7f6b7, authSessionParentId=2ea6c7a2-a908-4699-8996-16d984c7f6b7, authSessionTabId=AU3vfDJkygQ.

I am not sure why Userid is null and i dont see any information about setting minimum claims for oidc/adfs.