Understand how to federate to Sharepoint

I need some clarity on the topic. Can I use ADFS or ldap to federate users to keycloak and setup a client services to on prem sharepoint?