I did a complete re-install of Keycloak on my local machine, and it's now working. Don't know what was going on, but apparently the issue was with Keycloak's configuration.