{ "realm": "demo", "enabled": true, "sslRequired": "none", "accessTokenLifespan": 300, "roles": { "realm": [ { "name": "USER", "description": "Ordinary user" }, { "name": "ADMIN", "description": "Administrator" } ], "client": { "reports-api": [ { "name": "reports-reader", "description": "May read reports" } ] } }, "clients": [ { "clientId": "reports-api", "enabled": true, "bearerOnly": true, "protocol": "openid-connect", "description": "The resource server. It never logs anyone in; it only owns roles and is an audience." }, { "clientId": "demo-client", "enabled": true, "publicClient": false, "secret": "demo-secret", "standardFlowEnabled": false, "directAccessGrantsEnabled": true, "serviceAccountsEnabled": false, "protocol": "openid-connect", "fullScopeAllowed": true, "protocolMappers": [ { "name": "reports-api-audience", "protocol": "openid-connect", "protocolMapper": "oidc-audience-mapper", "consentRequired": false, "config": { "included.client.audience": "reports-api", "id.token.claim": "false", "access.token.claim": "true" } } ] } ], "users": [ { "username": "alice", "enabled": true, "emailVerified": true, "firstName": "Alice", "lastName": "Anderson", "email": "alice@example.com", "requiredActions": [], "credentials": [ { "type": "password", "value": "alice-password", "temporary": false } ], "realmRoles": [ "USER" ], "clientRoles": { "reports-api": [ "reports-reader" ] } }, { "username": "root", "enabled": true, "emailVerified": true, "firstName": "Root", "lastName": "Admin", "email": "root@example.com", "requiredActions": [], "credentials": [ { "type": "password", "value": "root-password", "temporary": false } ], "realmRoles": [ "USER", "ADMIN" ], "clientRoles": { "reports-api": [ "reports-reader" ] } }, { "username": "nobody", "enabled": true, "emailVerified": true, "firstName": "No", "lastName": "Body", "email": "nobody@example.com", "requiredActions": [], "credentials": [ { "type": "password", "value": "nobody-password", "temporary": false } ], "realmRoles": [ "USER" ] } ] }