Implemented password hashing. Added and improved tests.
This commit is contained in:
@ -3,6 +3,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"artifactsRepo": { "type": "string" },
|
||||
"authSecret": { "type": "string" },
|
||||
"pwdCost": { "type": "integer" },
|
||||
"projects": {
|
||||
"title": "ProjectsList",
|
||||
"type": "array",
|
||||
@ -30,19 +32,14 @@
|
||||
"title": "UserDefinition",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"username": { "type": "string" },
|
||||
"name": { "type": "string" },
|
||||
"hashedPwd": { "type": "string" }
|
||||
},
|
||||
"required": ["username", "hashedPwd"],
|
||||
"required": ["name", "hashedPwd"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"tokens": {
|
||||
"title": "TokensList",
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"required": ["artifactsRepo", "projects", "users", "tokens"],
|
||||
"required": ["artifactsRepo", "authSecret", "pwdCost", "projects", "users"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
Reference in New Issue
Block a user