From 0d90ab4f04ec9b130e576762396a14317b610199 Mon Sep 17 00:00:00 2001 From: Syndesi Date: Fri, 8 Sep 2023 12:30:08 +0200 Subject: [PATCH] Add password hash to user in scenario . Fixes #6. --- CHANGELOG.md | 2 ++ node/endpoint/user/postToken/token.json | 10 ---------- node/endpoint/user/postToken/user.json | 5 ++++- relation/endpoint/user/postToken/owns-token.json | 9 --------- 4 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 node/endpoint/user/postToken/token.json delete mode 100755 relation/endpoint/user/postToken/owns-token.json diff --git a/CHANGELOG.md b/CHANGELOG.md index e1fe6c3..54a03d1 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Added +- Add password hash to user `user@postToken.user.endpoint.localhost.de` in scenario `endpoint.user.postToken`. Fixes #6. ## 0.0.7 - 2023-09-03 ### Added diff --git a/node/endpoint/user/postToken/token.json b/node/endpoint/user/postToken/token.json deleted file mode 100644 index 83c9cb0..0000000 --- a/node/endpoint/user/postToken/token.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "type": "Token", - "id": "0bdb2640-2a6e-4dfc-b053-8ce98041d7ca", - "data": { - "token": "secret-token:3tgEP9MhD81rkp3qiJcm1U", - "hash": "16188ad791497a1fc569a56e13bf023828de0c36d1a6367a284d31680c6ebbbb", - "test": "endpoint.user.postToken", - "note": "Token contains token only due to testing purposes." - } -} \ No newline at end of file diff --git a/node/endpoint/user/postToken/user.json b/node/endpoint/user/postToken/user.json index 7480a07..2a681c2 100755 --- a/node/endpoint/user/postToken/user.json +++ b/node/endpoint/user/postToken/user.json @@ -4,6 +4,9 @@ "data": { "name": "User", "email": "user@postToken.user.endpoint.localhost.de", - "test": "endpoint.user.postToken" + "test": "endpoint.user.postToken", + "_passwordHash": "$argon2i$v=19$m=65536,t=4,p=1$Y0tlcWJyeDNKSHhBMGR2TA$+dSJbs8S+236knAVs8ibnVgQliADyKHR+YmWmOtvnoc", + "password": "1234", + "note": "User contains password only due to testing purposes." } } \ No newline at end of file diff --git a/relation/endpoint/user/postToken/owns-token.json b/relation/endpoint/user/postToken/owns-token.json deleted file mode 100755 index 703f8e2..0000000 --- a/relation/endpoint/user/postToken/owns-token.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "OWNS", - "id": "26488763-c97a-4cdf-8ca5-50da5d455509", - "start": "a7bdb6d2-9aeb-4406-99b4-2e1d31eeea6c", - "end": "0bdb2640-2a6e-4dfc-b053-8ce98041d7ca", - "data": { - "test": "endpoint.user.postToken" - } -} \ No newline at end of file