Keycloak configuration
Keycloak needs to be configured to enable the client to authenticate.
On the Keycloak admin page modify the PackagingControl configuration
The check box "Direct access grants" must be enabled, otherwise the client will not be able to authenticate and will not work.