dettlaff
|
7ade8f8d01
|
notfix: remove try
|
2024-11-22 23:18:33 +04:00 |
|
dettlaff
|
13dbfd7c02
|
fix: fox
|
2024-11-22 23:15:06 +04:00 |
|
dettlaff
|
fa17f18e0e
|
fix: add some debbug
|
2024-11-22 23:10:29 +04:00 |
|
dettlaff
|
833edab852
|
fix: re
|
2024-11-22 22:41:50 +04:00 |
|
dettlaff
|
8495c632d5
|
fix: re search
|
2024-11-21 22:05:07 +04:00 |
|
dettlaff
|
b9ee8fad91
|
fix: add more debug for subprocess.check_output
|
2024-11-21 21:20:29 +04:00 |
|
dettlaff
|
74b3046e5d
|
fix: replace json by re
|
2024-11-21 21:01:29 +04:00 |
|
dettlaff
|
ecbe52e22c
|
fix: reset_and_save_idm_admin_password remove jq from subprocess.check_output
|
2024-11-21 20:45:43 +04:00 |
|
dettlaff
|
7b81c47cee
|
fix: add more debug
|
2024-11-21 20:00:14 +04:00 |
|
dettlaff
|
d40cde9281
|
fix: use shell=True for testing
|
2024-11-21 19:42:02 +04:00 |
|
dettlaff
|
cf347a2dc3
|
fix: from kanidm to kanidmD
|
2024-11-20 21:30:56 +04:00 |
|
dettlaff
|
7e349536d6
|
fix: typo
|
2024-11-20 17:15:10 +04:00 |
|
dettlaff
|
31cb627db6
|
fix: change old class name
|
2024-11-20 17:07:42 +04:00 |
|
dettlaff
|
9ac4ddc63f
|
feat: add kanidm token manager
|
2024-11-19 21:50:43 +04:00 |
|
dettlaff
|
2dc34d6d0e
|
refactor: mv hash_password to repository
|
2024-11-15 18:30:51 +04:00 |
|
dettlaff
|
d3f24d958d
|
fix: change password to hashed_password
|
2024-11-15 03:52:27 +04:00 |
|
dettlaff
|
1c3e2cc2e0
|
feat: update filds
|
2024-11-15 03:30:24 +04:00 |
|
dettlaff
|
d171961ef9
|
fix: change name to username
|
2024-11-11 21:49:51 +04:00 |
|
dettlaff
|
e16f538c30
|
fix: types UserDataUser
|
2024-11-11 21:47:31 +04:00 |
|
dettlaff
|
6fcb47348f
|
fix: missing _send_query
|
2024-11-11 21:41:44 +04:00 |
|
dettlaff
|
9fdb5b06df
|
fix: user types
|
2024-11-11 21:37:17 +04:00 |
|
dettlaff
|
0f92452ee8
|
fix: change return type
|
2024-11-11 21:09:14 +04:00 |
|
dettlaff
|
997b88d4c8
|
fix: remove double https
|
2024-11-11 20:50:52 +04:00 |
|
dettlaff
|
a308b3afd7
|
fix: remove ssl check
|
2024-11-11 20:45:28 +04:00 |
|
dettlaff
|
b1619097ff
|
fix: change canidm url
|
2024-11-11 20:40:41 +04:00 |
|
dettlaff
|
239c47964c
|
fix: add endpoint debug
|
2024-11-11 20:36:16 +04:00 |
|
dettlaff
|
c056540578
|
fix: error exception
|
2024-11-11 20:07:34 +04:00 |
|
dettlaff
|
b6a4758c9b
|
feat: add check response error text
|
2024-11-11 13:04:35 +04:00 |
|
dettlaff
|
a1f77918de
|
test: commit will be removed
|
2024-11-11 12:41:30 +04:00 |
|
dettlaff
|
d7bbb64034
|
feat: UserRepositoryError
|
2024-11-11 04:51:42 +04:00 |
|
dettlaff
|
06db9b2201
|
test: change ACTIVE_USERS_PROVIDER (this commit will be deleted)
|
2024-11-11 04:40:10 +04:00 |
|
dettlaff
|
4eb2678c14
|
fix: create user, add test token
|
2024-11-11 04:33:17 +04:00 |
|
dettlaff
|
fbc0ae61fb
|
feat: removed unnecessary functionality from the repository
|
2024-11-03 03:15:51 +04:00 |
|
dettlaff
|
516cb781dc
|
feat: add canidm repo
|
2024-10-29 01:57:23 +04:00 |
|
dettlaff
|
a144c91113
|
refactor: moved json user management to a separate repository
|
2024-10-26 22:22:31 +04:00 |
|
Inex Code
|
1259c081ef
|
style: Reformat with new Black version
|
2024-07-26 22:59:44 +03:00 |
|
Inex Code
|
bda21b7507
|
fix: Mark md5 as not used for security
|
2024-03-15 16:14:31 +04:00 |
|
Inex Code
|
b6f436d8b3
|
refactor: Adapt API to the NixOS configuration changes
|
2024-01-10 15:05:10 +02:00 |
|
Houkime
|
b7cd703eaa
|
fix(tokens): missing timezone import
|
2023-10-25 14:53:18 +00:00 |
|
Inex Code
|
829aca14be
|
Merge branch 'master' into redis/connection-pool
|
2023-10-24 19:25:36 +03:00 |
|
Inex Code
|
e0a5ecdd9d
|
style: reformat
|
2023-07-20 19:37:01 +03:00 |
|
Inex Code
|
0245d629fd
|
refactor(backups): linting
|
2023-07-20 18:24:26 +03:00 |
|
Houkime
|
6ca68fae17
|
fix(tokens-repo): persistent hashing
|
2023-06-23 11:54:40 +00:00 |
|
Houkime
|
5be3c83952
|
fix(tokens-repo): persistent hashing
|
2023-06-21 12:15:33 +00:00 |
|
Houkime
|
5fbfaa73ea
|
feat(tokens-repo): add clone() method
|
2023-06-14 14:02:23 +03:00 |
|
Houkime
|
d0a17d7b7a
|
fix(tokens-repo): make json _get_stored_new_device_key return tz-aware keys
|
2023-06-14 14:02:23 +03:00 |
|
Houkime
|
da19cc8c0e
|
refactor(tokens-repo): move create recovery key to abstract token repository
|
2023-06-14 14:02:23 +03:00 |
|
Houkime
|
817f414dd9
|
refactor(tokens-repo): break out storing recovery keys
|
2023-06-14 14:02:23 +03:00 |
|
Houkime
|
baf72b730b
|
refactor(tokens-repo): move reset to AbstractTokensRepo
|
2023-06-14 14:02:23 +03:00 |
|
Houkime
|
158c1f13a6
|
refactor(tokens-repo): switch token backend to redis
And use timezone-aware comparisons for expiry checks
|
2023-06-14 14:02:23 +03:00 |
|
Inex Code
|
cb403a94bd
|
fix: typing
|
2022-12-30 21:06:16 +03:00 |
|
Houkime
|
450ff41ebd
|
feat(tokens-repo): make device names unique before storage
|
2022-12-26 15:51:12 +00:00 |
|
Houkime
|
7d9bccf4ec
|
fix(tokens-repo): make is_token_valid infallible
|
2022-12-26 15:18:02 +00:00 |
|
Houkime
|
5d4ed73435
|
fix(tokens-repo): properly expire new device keys
|
2022-12-26 14:01:36 +00:00 |
|
Houkime
|
c037a12f4d
|
refactor(tokens-repo): break out _store_new_device_key()
|
2022-12-26 12:31:09 +00:00 |
|
Houkime
|
22a309466e
|
fix(tokens-repo): fix is_name_exists() being fallible
|
2022-12-21 17:04:18 +00:00 |
|
Houkime
|
20410ec790
|
fix(tokens-repo): fix name pair validation being able to raise a notfound error
|
2022-12-21 16:10:41 +00:00 |
|
Houkime
|
d3bf867bb5
|
fix(tokens-repo): do not change the date on token refresh
|
2022-12-21 13:05:00 +00:00 |
|
Houkime
|
a97705ef25
|
fix(tokens-repository): fix getting and setting recovery token expiration date
|
2022-12-21 10:24:05 +00:00 |
|
Houkime
|
ab70687c61
|
fix(tokens-repository) :make NONE-uses-left eternally valid and test for it
|
2022-12-19 12:57:32 +00:00 |
|
Houkime
|
5a25e2a270
|
feat(tokens-repo): getting stored device key
|
2022-12-16 13:05:06 +00:00 |
|
Houkime
|
0ae7c43ebf
|
refactor(tokens-repo): break out generic hash_as_model casting
|
2022-12-16 13:05:00 +00:00 |
|
Houkime
|
fda5d315a9
|
fix(tokens-repo): return device key instead of NewDeviceKey class
|
2022-12-16 13:04:51 +00:00 |
|
Houkime
|
13e84e2697
|
feat(tokens-repo): recovery key uses decrement
|
2022-12-16 13:04:47 +00:00 |
|
Houkime
|
eba1d01b3d
|
feat(tokens-repo): recovery key creation
|
2022-12-16 13:04:43 +00:00 |
|
Houkime
|
8dfb3eb936
|
feat(tokens-repo): fuller reset
|
2022-12-16 13:04:39 +00:00 |
|
Houkime
|
4579fec569
|
feat(tokens-repo): get recovery key
|
2022-12-16 13:04:35 +00:00 |
|
Houkime
|
257096084f
|
refactor(tokens-repo): split out date field detection
|
2022-12-16 13:04:26 +00:00 |
|
Houkime
|
bf6c230ae0
|
fix(tokens-repo): raise token not found when deleting nonexistent token
even if device name exists
|
2022-12-16 13:04:26 +00:00 |
|
Houkime
|
95e200bfc5
|
feat(tokens-repo): reset function
|
2022-12-16 13:04:19 +00:00 |
|
Houkime
|
9ffd67fa19
|
feat(tokens-repo): get new device key
|
2022-12-16 13:04:14 +00:00 |
|
Houkime
|
b98ccb88d1
|
refactor(tokens-repo): separate getting model dict
|
2022-12-16 13:04:04 +00:00 |
|
Houkime
|
3cb7f29593
|
refactor(tokens-repo): detach preparing a dict before a model cast
|
2022-12-16 13:03:57 +00:00 |
|
Houkime
|
647e02f25b
|
feat(tokens-repo): redis delete token
|
2022-12-16 13:03:46 +00:00 |
|
Houkime
|
ba6a5261fa
|
refactor(tokens-repo): redis token key func
|
2022-12-16 13:03:41 +00:00 |
|
Houkime
|
d8e3cd67e0
|
feat(tokens-repo): redis store token
|
2022-12-16 13:03:36 +00:00 |
|
Houkime
|
256c16fa9f
|
feat(tokens-repo): redis get tokens
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
f2fa47466b
|
feat(tokens-repo):empty implementation of redis token repo
But it initializes and fails tests!
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
ca822cdf6f
|
refactor(tokens-repository): move use_mnemonic_new_device_key() to abstract class
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
2797c6f88f
|
fix(tokens-repository): use_mnemonic_new_device_key() now stores a token
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
4498003aca
|
refactor(tokens-repository): dissect use_mnemonic_new_device_key()
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
772c0dfc64
|
refactor(tokens-repository): move use_mnemonic_recovery_key() to abstract class
|
2022-12-16 13:03:27 +00:00 |
|
Houkime
|
671203e990
|
refactor(tokens-repository): dissect use_mnemonic_recovery_key()
|
2022-12-16 13:03:26 +00:00 |
|
Houkime
|
9a49067e53
|
refactor(tokens-repo): move token refreshing to parent class
|
2022-12-16 13:03:12 +00:00 |
|
Houkime
|
682cd4ae87
|
refactor(tokens-repo): move create_token to abstract class
|
2022-12-16 13:02:55 +00:00 |
|
Houkime
|
572ec75c39
|
refactor(tokens-repo): rewrite token refresh
now it is not json-dependent.
|
2022-12-16 13:02:43 +00:00 |
|
Houkime
|
27a7c24bc3
|
refactor(tokens-repo): separate token storing
|
2022-12-16 13:02:21 +00:00 |
|
Houkime
|
4e60d1d37a
|
refactor(tokens-repo): move token getters to abstract class
Not performance-optimal, but not in critical path either.
100 tokens max irl?
|
2022-12-16 13:02:05 +00:00 |
|
Houkime
|
ff264ec808
|
refactor(tokens-repo): simplify getting tokens
get_token_by_token_string and get_token_by_name are no longer tied to
json.
|
2022-12-16 13:01:28 +00:00 |
|
def
|
16e0bd56ce
|
refactor(repository): Tokens repository JSON backend (#18)
Co-authored-by: def <dettlaff@riseup.net>
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/18
Co-authored-by: def <dettlaff@riseup.net>
Co-committed-by: def <dettlaff@riseup.net>
|
2022-12-02 14:19:57 +03:00 |
|