Add KeyToken authorization

This commit is contained in:
2023-04-21 21:45:16 +02:00
parent 16f6ab4861
commit b1bd278f9b
49 changed files with 3109 additions and 1313 deletions

View File

@@ -352,9 +352,9 @@ func InitDefaultData(t *testing.T, ws *logic.Application) DefData {
body["user_id"] = users[mex.User].UID
switch mex.Key {
case AKEY:
body["user_key"] = users[mex.User].AdminKey
body["key"] = users[mex.User].AdminKey
case SKEY:
body["user_key"] = users[mex.User].SendKey
body["key"] = users[mex.User].SendKey
}
if mex.Content != "" {
body["content"] = mex.Content