extended trust endpoint

* added possibility to trust all known keys. This option doesn't require
  the user to provide a safety number, but insted all known keys are
  trusted. This option is obviously less secure and should only be used
  for testing.

see #237
This commit is contained in:
Bernhard B
2022-04-09 09:23:34 +02:00
parent ab4934832a
commit 00ea8809b2
5 changed files with 69 additions and 12 deletions

View File

@@ -840,7 +840,7 @@ var doc = `{
},
"/v1/identities/{number}/trust/{numberToTrust}": {
"put": {
"description": "Trust an identity.",
"description": "Trust an identity. When 'trust_all_known_keys' is set to' true', all known keys of this user are trusted. **This is only recommended for testing.**",
"produces": [
"application/json"
],
@@ -1649,6 +1649,10 @@ var doc = `{
"api.TrustIdentityRequest": {
"type": "object",
"properties": {
"trust_all_known_keys": {
"type": "boolean",
"example": false
},
"verified_safety_number": {
"type": "string"
}
@@ -1727,6 +1731,12 @@ var doc = `{
"client.GroupEntry": {
"type": "object",
"properties": {
"admins": {
"type": "array",
"items": {
"type": "string"
}
},
"blocked": {
"type": "boolean"
},