Skip to content

Agent Mesh

2.0 KB
Raw Blame
{
  "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
        }
      ]
    }
  ]
}