This repository shows bare minimum for integrating keycloak with Django and React
Note that this is just an example, source code is not in the best shape
- Docker and docker-compose
- Run
docker-compose up
- Open
localhost:8080
- Open
Administration Console
and login with default admin credentials- Login:
admin
Password:admin
- Login:
- Open
Realm settings
(found at bottom left) - Set
Frontend URL
tohttp://localhost:8080
- Save
- Open
Clients
(found at top left) - Click on
Create client
- Put
Client ID
asreact
- Click
Next
until you seeRoot URL
option - Set
Root URL
tohttp://localhost:5173/
- Click
Save
- Open
Clients
(found at top left) - Click on
Create client
- Put
Client ID
asbackend
- Click
Next
until you seeRoot URL
option - Set
Root URL
tohttp://localhost:8000/
- Click
Save
- Open
localhost:8080
- Open
Administration Console
and login with default admin credentials - Open
Realm settings
(found at bottom left) - Click on
Login
tab - Turn on
User registration
Now you are ready to open http://localhost:5173
to play with React app