Is there a way to authenticate the user without having to input username and password on the login page?

For example: 

Say there's a situation in my application where I request the user for his username and password, and I wouldn't like to redirect that to the keycloak login page to authenticate him, would there be a way for me to do that?

--
Rodrigo Sasaki