Skip to content

Agent Mesh

examples: Keycloak realms for the agentgateway example

HosniBelfeki68e1503cd67c
diff --git a/development/examples/agentgateway/realm-elsewhere.json b/development/examples/agentgateway/realm-elsewhere.json
new file mode 100644
index 00000000..5e621b1f
--- /dev/null
+++ b/development/examples/agentgateway/realm-elsewhere.json
@@ -0,0 +1,29 @@
+{
+ "realm": "elsewhere",
+ "enabled": true,
+ "accessTokenLifespan": 60,
+ "clients": [
+ {
+ "clientId": "agentmesh",
+ "publicClient": true,
+ "directAccessGrantsEnabled": true
+ }
+ ],
+ "users": [
+ {
+ "username": "alice",
+ "enabled": true,
+ "email": "[email protected]",
+ "emailVerified": true,
+ "firstName": "Alice",
+ "lastName": "Elsewhere",
+ "credentials": [
+ {
+ "type": "password",
+ "value": "alice-test-only",
+ "temporary": false
+ }
+ ]
+ }
+ ]
+}
diff --git a/development/examples/agentgateway/realm-mesh.json b/development/examples/agentgateway/realm-mesh.json
new file mode 100644
index 00000000..f7e97bea
--- /dev/null
+++ b/development/examples/agentgateway/realm-mesh.json
@@ -0,0 +1,92 @@
+{
+ "realm": "mesh",
+ "enabled": true,
+ "accessTokenLifespan": 60,
+ "groups": [
+ {
+ "name": "devs"
+ },
+ {
+ "name": "ops"
+ }
+ ],
+ "clients": [
+ {
+ "clientId": "agentmesh",
+ "publicClient": true,
+ "standardFlowEnabled": true,
+ "directAccessGrantsEnabled": true,
+ "redirectUris": [
+ "http://127.0.0.1/*",
+ "http://localhost/*"
+ ],
+ "protocolMappers": [
+ {
+ "name": "groups",
+ "protocol": "openid-connect",
+ "protocolMapper": "oidc-group-membership-mapper",
+ "config": {
+ "claim.name": "groups",
+ "full.path": "false",
+ "id.token.claim": "true",
+ "access.token.claim": "true",
+ "userinfo.token.claim": "true"
+ }
+ },
+ {
+ "name": "audience",
+ "protocol": "openid-connect",
+ "protocolMapper": "oidc-audience-mapper",
+ "config": {
+ "included.client.audience": "agentmesh",
+ "id.token.claim": "false",
+ "access.token.claim": "true"
+ }
+ }
+ ]
+ },
+ {
+ "clientId": "other-app",
+ "publicClient": true,
+ "directAccessGrantsEnabled": true
+ }
+ ],
+ "users": [
+ {
+ "username": "alice",
+ "enabled": true,
+ "email": "[email protected]",
+ "emailVerified": true,
+ "firstName": "Alice",
+ "lastName": "Dev",
+ "groups": [
+ "/devs"
+ ],
+ "credentials": [
+ {
+ "type": "password",
+ "value": "alice-test-only",
+ "temporary": false
+ }
+ ]
+ },
+ {
+ "username": "bob",
+ "enabled": true,
+ "email": "[email protected]",
+ "emailVerified": true,
+ "firstName": "Bob",
+ "lastName": "Ops",
+ "groups": [
+ "/ops"
+ ],
+ "credentials": [
+ {
+ "type": "password",
+ "value": "bob-test-only",
+ "temporary": false
+ }
+ ]
+ }
+ ]
+}