88 lines
2.5 KiB
JSON
88 lines
2.5 KiB
JSON
{
|
|
"id": "workorders",
|
|
"realm": "workorders",
|
|
"displayName": "Work Orders",
|
|
"enabled": true,
|
|
"registrationAllowed": false,
|
|
"resetPasswordAllowed": true,
|
|
"rememberMe": true,
|
|
"verifyEmail": false,
|
|
"loginWithEmailAllowed": true,
|
|
"sslRequired": "none",
|
|
"clients": [
|
|
{
|
|
"clientId": "workorders-app",
|
|
"name": "Work Orders App",
|
|
"enabled": true,
|
|
"publicClient": true,
|
|
"standardFlowEnabled": true,
|
|
"implicitFlowEnabled": false,
|
|
"directAccessGrantsEnabled": false,
|
|
"serviceAccountsEnabled": false,
|
|
"redirectUris": [
|
|
"http://localhost:9080/*",
|
|
"http://localhost:8081/*"
|
|
],
|
|
"webOrigins": [
|
|
"http://localhost:9080",
|
|
"http://localhost:8081"
|
|
],
|
|
"attributes": {
|
|
"pkce.code.challenge.method": "S256",
|
|
"post.logout.redirect.uris": "http://localhost:9080/*"
|
|
},
|
|
"protocol": "openid-connect"
|
|
}
|
|
],
|
|
"roles": {
|
|
"realm": [
|
|
{ "name": "admin", "description": "Full administrative access" },
|
|
{ "name": "dispatcher", "description": "Create and assign work orders" },
|
|
{ "name": "field_tech", "description": "Complete steps and upload photos" },
|
|
{ "name": "viewer", "description": "Read-only access" }
|
|
]
|
|
},
|
|
"users": [
|
|
{
|
|
"username": "admin",
|
|
"email": "admin@workorders.local",
|
|
"firstName": "Admin",
|
|
"lastName": "User",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"credentials": [{ "type": "password", "value": "admin123", "temporary": false }],
|
|
"realmRoles": ["admin"]
|
|
},
|
|
{
|
|
"username": "dispatcher",
|
|
"email": "dispatcher@workorders.local",
|
|
"firstName": "Dispatcher",
|
|
"lastName": "User",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"credentials": [{ "type": "password", "value": "dispatcher123", "temporary": false }],
|
|
"realmRoles": ["dispatcher"]
|
|
},
|
|
{
|
|
"username": "tech1",
|
|
"email": "tech1@workorders.local",
|
|
"firstName": "Tech",
|
|
"lastName": "One",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"credentials": [{ "type": "password", "value": "tech123", "temporary": false }],
|
|
"realmRoles": ["field_tech"]
|
|
},
|
|
{
|
|
"username": "viewer",
|
|
"email": "viewer@workorders.local",
|
|
"firstName": "View",
|
|
"lastName": "Only",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"credentials": [{ "type": "password", "value": "viewer123", "temporary": false }],
|
|
"realmRoles": ["viewer"]
|
|
}
|
|
]
|
|
}
|