https://docs.docker.com/desktop/
docker pull keycloak/keycloak
- Run the Docker Client
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin keycloak/keycloak:latest start-dev
- https://www.keycloak.org/getting-started/getting-started-docker
- http://localhost:8080/
- Create a new Realm
- Create a new Client
- Create a new User
For further info you can follow this guide: https://blog.logrocket.com/implement-keycloak-authentication-react/
The new Realm and Client created above must be added in the Keycloak.js config.
const keycloak = new Keycloak({
url: "http://localhost:8080",
realm: "RealmDemo",
clientId: "restClient",
});
The created user credentials are used for logging in when the Keycloak window is showed.