Implemented password hashing. Added and improved tests.

This commit is contained in:
Jonathan Bernard
2017-03-24 01:04:39 -05:00
parent b5a70f6de0
commit 52b7d2f48b
12 changed files with 113 additions and 56 deletions

View File

@ -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
}