Hier stellen wir die Sourcen zur Demo vom Vortrag "Föderation statt Integration - Skalierbare IAM-Anbindung" unseres Kollegen Sven-Torben Janus auf der SEACON 2017 zur Verfügung.
Starten*
docker-compose up
Stoppen*
docker-compose down
- Benutzername: seacon
- Passwort: seacon
- Basic Auth Bas64: c2VhY29uOnNlYWNvbg==
HASH=c2VhY29uOnNlYWNvbg==
curl -H "Authorization: Basic $HASH" localhost:8081/red
cd integrated
mvn gatling:execute
Benutzername und Passwort setzen
set USER=seacon
set PASS=seacon
Authentifizieren und Token holen
set RESULT=`curl -s --data "grant_type=password&client_id=keycloak-example&username=${USER}&password=${PASS}" http://localhost:9080/auth/realms/keycloak-example/protocol/openid-connect/token`
set TOKEN=`echo $RESULT | sed 's/.*access_token":"//g' | sed 's/".*//g'`
Service anfragen
curl -H "Authorization: Bearer $TOKEN" localhost:8082/red
cd federated
mvn gatling:execute
- Benutzername: admin
- Passwort: admin
http://localhost:9080/auth/admin/
- Benutzername: admin
- Passwort: admin