Switch token storage to Redis #32

Merged
inex merged 38 commits from redis/tokens-switch into redis/connection-pool 2023-03-24 16:09:25 +02:00

38 Commits (master)

Author SHA1 Message Date
Houkime d9b5710007 feat(tokens-repo): add migration of tokens to redis 2023-01-13 13:43:04 +00:00
Houkime 4c61c874c4 feat(tokens-repo): add clone() method 2023-01-13 13:43:04 +00:00
Houkime 628d7ed4a8 fix(tokens-repo): make json _get_stored_new_device_key return tz-aware keys 2023-01-13 13:43:04 +00:00
Houkime c3d797b0ab refactor(tokens-repo): move create recovery key to abstract token repository 2023-01-13 13:43:04 +00:00
Houkime 72681c5330 refactor(tokens-repo): break out storing recovery keys 2023-01-13 13:43:04 +00:00
Houkime 496f0bc452 refactor(tokens-repo): move reset to AbstractTokensRepo 2023-01-13 13:43:04 +00:00
Houkime a8ac9e7c64 refactor(tokens-repo): cleanup actions/api_tokens.py 2023-01-13 13:43:04 +00:00
Houkime c624529670 refactor(tokens-repo): switch token backend to redis
And use timezone-aware comparisons for expiry checks
2023-01-13 13:43:04 +00:00
Houkime dc13235332 test(tokens-repo): remove device order dependence from graphql test__api 2023-01-13 13:43:04 +00:00
Houkime eba1f19a55 test(tokens-repo): cleanup recovery tests 2023-01-13 13:43:04 +00:00
Houkime cf87b3590b test(tokens-repo): complete the recovery test rework 2023-01-13 13:43:04 +00:00
Houkime c8ccd415fe test(tokens-repo): rework limited uses test 2023-01-13 13:43:04 +00:00
Houkime 59f5ec2e2e test(tokens-repo): rework recovery expiration in the past 2023-01-13 13:43:04 +00:00
Houkime 5280aca544 test(tokens-repo): rework expiring recovery key tests 2023-01-13 13:43:04 +00:00
Houkime 8e1e917bff test(tokens-repo): check for token existense in recovery tests 2023-01-13 13:43:04 +00:00
Houkime 6b6cc33b8e test(tokens-repo): move token utils to graphql common 2023-01-13 13:43:04 +00:00
Houkime 0160f4aac0 test(tokens-repo): break out using recovery key 2023-01-13 13:43:04 +00:00
Houkime 5382558655 test(tokens-repo): use get recovery status in test of recovery use 2023-01-13 13:43:04 +00:00
Houkime b6dff04f42 test(tokens-repo): use assert recent 2023-01-13 13:43:04 +00:00
Houkime f742c256d7 test(tokens-repo): break out getting recovery key 2023-01-13 13:43:04 +00:00
Houkime 88508985c9 test(tokens-repo): break out getting status 2023-01-13 13:43:04 +00:00
Houkime 8d15955124 test(tokens-repo): use assert_empty consistently 2023-01-13 13:43:04 +00:00
Houkime 3e641b1107 test(tokens-repo): complete untying graphql device tests from json 2023-01-13 13:43:04 +00:00
Houkime e537dd5f45 test(tokens-repo): move timewarping to test commons 2023-01-13 13:43:04 +00:00
Houkime a0bd3eb0ff test(tokens-repo): shrink invalid new device test 2023-01-13 13:43:04 +00:00
Houkime c7222fd8b9 test(tokens-repo): untie double new device auth from json 2023-01-13 13:43:04 +00:00
Houkime 93b02752df test(tokens-repo): untie authorize new device from json 2023-01-13 13:43:04 +00:00
Houkime ff6128b96e test(tokens-repo): untie get and delete new device from json 2023-01-13 13:43:04 +00:00
Houkime e9934a2567 test(tokens-repo): delete get new device key standalone test
we can only see if device key is valid by using it or deleting it.
another test does it
2023-01-13 13:43:04 +00:00
Houkime 74c36afc2d test(tokens-repo): untie refresh token testing from token repo 2023-01-13 13:43:04 +00:00
Houkime 37fd3574a1 test(tokens-repo): make sure we try to delete the token we authed with 2023-01-13 13:43:04 +00:00
Houkime e7f0d76001 test(tokens-repo): apply assert_ok and assert_error() 2023-01-13 13:43:04 +00:00
Houkime e5083c308a test(tokens-repo): break out assert_data() 2023-01-13 13:43:04 +00:00
Houkime c917c411fd test(tokens-repo): break out assert_empty() 2023-01-13 13:43:04 +00:00
Houkime 4582bfe6c4 test(tokens-repo): break out assert_ok() and assert_errorcode() in graphql 2023-01-13 13:43:04 +00:00
Houkime c597850fa5 test(tokens-repo): untie token deletion tests from json 2023-01-13 13:43:04 +00:00
Houkime 70c82cf142 test(tokens-repo): break out assert_original() in graphql device tests 2023-01-13 13:43:04 +00:00
Houkime a8d91a7a63 test(tokens-repo): delete extraneous test token content copies 2023-01-13 13:43:04 +00:00