- ggf. als Docker-container:
docker run -p 8080:8080 -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:26.1.3 start-dev - anmelden auf localhost:8080 (admin:admin)
- Realm myreal erstellen
- Im Realm einen client erstellen
- client id:
demo_client - redirect-url:
http://localhost:5173/* - web origin:
http://localhost:5173
- client id:
- Realm Benutzer erstellen
npm install @react-keycloak/web keycloak-js- code + config siehe main.jsx und App.jsx
-
Realm-based setup as Identitxy Provider
-
in Github neue Githup app erstellen,
-
in Github App Konfiguration: redirect url entsprechend Keycloak IdP setzen (siehe Screenshot github)
-
im Keycloak-Config: client id und secret aus von Github App einfügen (siehe Screenshots)

