forked from qwc-services/qwc-db-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qwc-db-auth.json
99 lines (99 loc) · 3.1 KB
/
qwc-db-auth.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/qwc-services/qwc-db-auth/master/schemas/qwc-db-auth.json",
"title": "QWC DB authentication service",
"type": "object",
"properties": {
"$schema": {
"title": "JSON Schema",
"description": "Reference to JSON schema of this config",
"type": "string",
"format": "uri",
"default": "https://raw.githubusercontent.com/qwc-services/qwc-db-auth/master/schemas/qwc-db-auth.json"
},
"service": {
"title": "Service name",
"type": "string",
"const": "db-auth"
},
"config": {
"title": "Config options",
"type": "object",
"properties": {
"db_url": {
"description": "DB connection URL",
"type": "string"
},
"password_min_length": {
"description": "Min password length",
"type": "integer"
},
"password_max_length": {
"description": "Max password length",
"type": "integer"
},
"password_constraints": {
"description": "List of RegExes for additional password constraints",
"type": "array",
"items": {
"type": "string"
}
},
"password_min_constraints": {
"description": "Min number of password_constraints to match for password to be valid",
"type": "integer"
},
"password_constraints_message": {
"description": "Validation message if password constraints are not met",
"type": "string"
},
"password_expiry": {
"description": "Number of days until password expires, or -1 to disable",
"type": "integer"
},
"password_expiry_notice": {
"description": "Show an expiry notice within this number of days before a password expires, or `-1` to disable",
"type": "integer"
},
"password_update_interval": {
"description": "Min number of seconds before password may be changed again, or -1 to disable",
"type": "integer"
},
"password_allow_reuse": {
"description": "Set whether previous passwords may be reused or not",
"type": "boolean"
},
"user_info_fields": {
"description": "List of user info fields to include in JWT identity",
"type": "array",
"items": {
"type": "string"
}
},
"logo_image_url": {
"description": "URL to a logo image to show in the login form",
"type": "string"
},
"background_image_url": {
"description": "URL to a background image for the login page",
"type": "string"
},
"customstylesheet": {
"description": "Filename of custom stylesheet placed next to regular style.css",
"type": "string"
},
"terms_url":{
"description": "URL to terms of use",
"type": "string"
}
},
"required": [
"db_url"
]
}
},
"required": [
"service",
"config"
]
}