Skip to content

Commit d384076

Browse files
committed
update configuration for new features on the ui
Change-Type: minor
1 parent bc98cda commit d384076

File tree

2 files changed

+68
-41
lines changed

2 files changed

+68
-41
lines changed

rpi-conf/agile-idm-core-conf.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,15 @@ module.exports = {
355355
"type": "string"
356356
},
357357
"auth_type": {
358-
"type": "string"
358+
"type": "string",
359+
"enum": ["agile-local"]
359360
},
360361
"password": {
361362
"type": "string"
362363
},
363364
"role": {
364-
"type": "string"
365+
"type": "string",
366+
"enum": ["admin"]
365367
},
366368
"credentials": {
367369
"type": "object",
@@ -385,6 +387,15 @@ module.exports = {
385387
}
386388
},
387389
"required": ["name"]
390+
}, {
391+
"id": "/group",
392+
"type": "object",
393+
"properties": {
394+
"group_name": {
395+
"type": "string"
396+
}
397+
},
398+
"required": ["group_name"]
388399
}, {
389400
"id": "/gateway",
390401
"type": "object",

rpi-conf/agile-ui-conf.js

Lines changed: 55 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -42,61 +42,77 @@ module.exports = {
4242
"https_port_with_client": 1443,
4343
"enabledStrategies": ["agile-local"],
4444
"cors": ["http://set-automatically:2000"],
45-
"gui":{
46-
"/device":{
47-
"hide": true,
45+
"gui": {
46+
"/device": {
47+
"hidden": true,
4848
"addNew": false,
49-
"attributes":{
50-
"id":{
51-
"editable":false
52-
},
53-
"owner":{
54-
"editable":false
55-
}
49+
"attributes": {
50+
"id": {
51+
"notEditable": true
52+
},
53+
"owner": {
54+
"notEditable": true
55+
}
56+
}
57+
},
58+
"/group": {
59+
"name": "Groups",
60+
"addNew": true,
61+
"attributes": {
62+
"group_name": {
63+
"name": "group name",
64+
"notEditable": true
65+
}
5666
}
5767
},
58-
"/user":{
59-
"attributes":{
60-
"id":{
61-
"editable":false
68+
"/user": {
69+
"name": "User",
70+
"attributes": {
71+
"id": {
72+
"notEditable": true
73+
},
74+
"owner": {
75+
"notEditable": true
6276
},
63-
"owner":{
64-
"editable":false
77+
"user_name": {
78+
"notEditable": true,
79+
"name": "user name"
6580
},
66-
"user_name":{
67-
"editable":false,
68-
"name":"user name"
81+
"auth_type": {
82+
"notEditable": true,
83+
"name": "authentication method"
6984
},
70-
"auth_type":{
71-
"editable":false,
72-
"name":"authentication method"
85+
"password": {
86+
"notEditable": true,
87+
"hidden": true
7388
},
74-
"password":{
75-
"editable":false,
76-
"hidden":true
89+
"groups": {
90+
"notEditable": true,
91+
"hidden": true
7792
}
7893
}
7994
},
80-
"/client":{
81-
"attributes":{
82-
"id":{
83-
"editable":false
95+
"/client": {
96+
"name": "Client",
97+
"attributes": {
98+
"id": {
99+
"notEditable": true
84100
},
85-
"owner":{
86-
"editable":false
101+
"owner": {
102+
"notEditable": true
87103
},
88-
"clientSecret":{
89-
"editable":false,
90-
"name":"client secret"
104+
"clientSecret": {
105+
"notEditable": true,
106+
"name": "client secret"
91107
},
92-
"redirectURI":{
93-
"editable":false,
94-
"name":"Oauth2 callback"
108+
"redirectURI": {
109+
"notEditable": true,
110+
"name": "Oauth2 callback"
95111
}
96112
}
97113
},
98-
"/gateway":{
99-
"hide": true,
114+
"/gateway": {
115+
"hidden": true,
100116
"addNew": false
101117
}
102118
}

0 commit comments

Comments
 (0)