4201 Commits

Author SHA1 Message Date
einhornimmond
ecc2cfbca8 remove import type for the time beeing 2025-04-30 09:31:11 +02:00
einhornimmond
987582c3ef Revert "use root biome config for backend, add useImportType rule"
This reverts commit bb8132791557fb9dcbf117ff7c3622a83e2e3730.
2025-04-30 09:29:09 +02:00
einhornimmond
bb81327915 use root biome config for backend, add useImportType rule 2025-04-30 09:17:57 +02:00
einhornimmond
04514aa375 Merge branch 'master' into yarn_workspaces_turbo 2025-04-30 09:05:46 +02:00
einhornimmond
1b5a151517 fix linting and includes 2025-04-29 12:06:43 +02:00
einhornimmond
5173edbb39 update to yarn workspaces and turbo 2025-04-28 10:15:49 +02:00
einhornimmond
90b8dbcc7b refactor code to satisfy biome rules, remove eslint rule comments 2025-04-26 10:17:18 +02:00
einhornimmond
3ff399064b auto applied changes from biome 2025-04-26 08:01:43 +02:00
clauspeterhuebner
80ebf93a4f changes after renamings 2025-04-25 20:00:27 +02:00
clauspeterhuebner
e386a79e48 corrections after renaming to RedeemJwtLink 2025-04-25 19:42:27 +02:00
clauspeterhuebner
c2294611bd changes to distingue between redeemJWT and disburseJWT 2025-04-25 19:19:17 +02:00
clauspeterhuebner
801df7575b next try 2025-04-24 18:09:47 +02:00
clauspeterhuebner
a2a026006a correct type of validUntil for createRedeemJwt 2025-04-24 18:01:59 +02:00
clauspeterhuebner
7104de0254 introduce validUntil in redeem-jwt-token payload 2025-04-24 17:26:14 +02:00
einhornimmond
c16786cd20 slice first_name and last_name after 20 character for humhub 2025-04-24 16:22:43 +02:00
einhornimmond
21be12f3b0 check firstname length for humhub 2025-04-24 15:27:30 +02:00
einhornimmond
456725aeae remove unnecessary \n, better final error reporting 2025-04-24 15:09:37 +02:00
clauspeterhuebner
322e4ca37f treat validUntil as Date in case of DisbursementLink too 2025-04-24 14:34:26 +02:00
einhornimmond
4860cc2670 use old humhub username on update for finding humhub user to prevent new user if user has changed email in humhub and alias in wallet 2025-04-24 13:05:16 +02:00
einhornimmond
4834c01fe9 prevent overwriting process message with error message 2025-04-24 11:57:19 +02:00
clauspeterhuebner
f133cb15bc next try 2025-04-24 01:38:44 +02:00
clauspeterhuebner
54258adc42 correct calculation of exp-date 2025-04-23 21:35:04 +02:00
clauspeterhuebner
0ed47d69e6 shift disbursement-logic in separated method 2025-04-23 19:52:58 +02:00
clauspeterhuebner
3770be4274 set validUntil in DisbersementLink by exp-claim of jwt-payload 2025-04-23 16:23:18 +02:00
einhornimmond
e450ee2ff3
Merge branch 'master' into humhub_project_auto_register_for_legacy_user 2025-04-23 14:05:09 +02:00
einhornimmond
68e0645d8f add more tests, correct special case with humhub username initials without alias 2025-04-23 10:59:03 +02:00
einhornimmond
9ff6470b47 make authenticateHumhubAutoLogin a mutation, auto register user on humhub if project was set and user don't exist on humhub 2025-04-22 10:10:16 +02:00
einhornimmond
6fdcb0a86d fix the fix 2025-04-17 18:04:48 +02:00
clauspeterhuebner
31c362be0a change user to senderUser 2025-04-17 18:03:41 +02:00
einhornimmond
b0444420a9 make sure that changing data for gms automatic disable random location type 2025-04-17 17:52:59 +02:00
clauspeterhuebner
11eb0c45a7 overwork transactionLink and disbursementLink 2025-04-17 17:48:03 +02:00
clauspeterhuebner
fddfe69bad first try with disbursement result from queryTransactionLink 2025-04-17 16:00:47 +02:00
clauspeterhuebner
6d8a65a138 rework JWT decoding/verifying 2025-04-16 16:59:28 +02:00
clauspeterhuebner
9648bb1227 correct compile errors on JwtTypes 2025-04-16 15:29:55 +02:00
einhornimmond
58b006193f fix update to exact gms location type 2025-04-16 13:10:33 +02:00
einhornimmond
b894544a6b change function and variable name 2025-04-16 10:13:48 +02:00
einhornimmond
35f28dc060 update public name logic, test and usage, distinguish between unique username and publicName 2025-04-16 10:06:06 +02:00
clauspeterhuebner
b63dbb5898 next try 2025-04-16 04:05:07 +02:00
clauspeterhuebner
e55d865c10 next try 2025-04-16 03:14:37 +02:00
clauspeterhuebner
32d130479a more logs 2025-04-16 03:01:31 +02:00
clauspeterhuebner
49a9a75ed7 next try 2025-04-16 02:39:41 +02:00
clauspeterhuebner
0e41e6518c remove check against referrer and in case of invalid signing use simply
decoded payload
2025-04-16 01:39:24 +02:00
clauspeterhuebner
28bd35ca2a next try for disbursementJwt mapping 2025-04-16 00:08:39 +02:00
clauspeterhuebner
4b901dc1dc check jwt type again constant instead of instanceof 2025-04-15 22:39:56 +02:00
clauspeterhuebner
a6e2efef19 sign jwt with senderCommunityUuid, search senderCom per decoded payload
and verify jwt with senderComUUid selected from db ensured against
referrer
2025-04-15 22:06:43 +02:00
clauspeterhuebner
41032e5fc6 tried different solutions for asymmetric keys and only HS256 could
create a JWT but without a valid signature
2025-04-15 16:49:51 +02:00
clauspeterhuebner
675ee6fd81 next try for verifyJWT with RS256 and private/public key usage 2025-04-14 19:03:47 +02:00
clauspeterhuebner
1b2f1ea275 more detailed logs 2025-04-14 16:21:12 +02:00
clauspeterhuebner
c8c91ebf4e add more logs 2025-04-14 16:00:18 +02:00
clauspeterhuebner
f04d156e5c additional log and missing await at decode invocation 2025-04-14 15:42:11 +02:00