-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
40 lines (40 loc) · 1.36 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"pluginAlias": "BoldBLE",
"pluginType": "platform",
"singular": true,
"customUi": true,
"schema": {
"type": "object",
"required": ["accessToken", "refreshToken", "legacyAuthentication"],
"properties": {
"name": {
"title": "Plugin name",
"type": "string",
"default": "BoldBLE",
"description": "Plugin name as shown in Homebridge Log"
},
"accessToken": {
"title": "Access token",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
"description": "This access token will be refreshed automatically."
},
"refreshToken": {
"title": "Refresh token",
"type": "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
"description": "This token will be used to refresh the access token."
},
"legacyAuthentication": {
"title": "Use legacy authentication",
"type": "boolean",
"description": "Switch between default and legacy authentication. This setting impacts token refreshing."
},
"refreshURL": {
"title": "Custom refresh URL",
"type": "string",
"description": "Custom refresh URL for token refreshing. Use this only if authenticated with a custom backend."
}
}
}
}