Connect KeyCloak With ERPnext

Hello I am relatively new to OAuth2.
I have my started my own KeyCloak Servrer on my local and want to use that as a social login for my ERPnext.

However, I am stuck in my KeyCloak. Can anyone guide a full doc how to setup KeyCloak and the connect it with ERPNext