Keycloak authentication with spring without using password

Hi,
I am currently working on keycloak with spring boot, I have a scenario where users has to authenticate with keycloak without the password. Will you please help how can we achieve this with spring boot and keycloak?