Ben Irvin
|
c61e402461
|
disallow updating lastUsed from api
|
2022-08-18 12:03:25 +02:00 |
|
Ben Irvin
|
745a3a8497
|
add lastUsed to yup validation schema
|
2022-08-18 12:00:47 +02:00 |
|
Ben Irvin
|
9de7791fad
|
cleanup
|
2022-08-18 11:53:30 +02:00 |
|
Ben Irvin
|
7b60783888
|
fix e2e tests
|
2022-08-18 11:02:24 +02:00 |
|
Ben Irvin
|
449f982781
|
Merge branch 'api-token-v2/permissions-for-api-token' into api-token-v2/access-times-backend
|
2022-08-18 10:55:11 +02:00 |
|
Ben Irvin
|
e28c9e7ec9
|
add lastUsed
|
2022-08-18 10:22:09 +02:00 |
|
Ben Irvin
|
215735b0cd
|
update lastUsed when token is accessed
|
2022-08-17 23:28:35 +02:00 |
|
Ben Irvin
|
f95bb29d76
|
add lastUsed
|
2022-08-17 23:28:20 +02:00 |
|
Ben Irvin
|
1436345e78
|
remove console.log
|
2022-08-17 10:10:28 +02:00 |
|
Ben Irvin
|
88c243243d
|
make error message unique
|
2022-08-16 10:18:41 +02:00 |
|
Ben Irvin
|
dbddec6c62
|
fix permission mapping
|
2022-08-16 10:11:32 +02:00 |
|
Ben Irvin
|
0972919247
|
list and get should return array of action strings
|
2022-08-12 09:52:47 +02:00 |
|
Ben Irvin
|
f97c59ff90
|
fix token builder
|
2022-08-12 09:50:10 +02:00 |
|
Ben Irvin
|
8ca7c13449
|
add some failed attempts at improving
|
2022-08-11 18:04:59 +02:00 |
|
Ben Irvin
|
fc752052c8
|
fix delete test
|
2022-08-11 13:02:28 +02:00 |
|
Ben Irvin
|
df8b8750a7
|
fix delete
|
2022-08-11 13:00:21 +02:00 |
|
Ben Irvin
|
e4d1f59b34
|
reorganize logic
|
2022-08-11 12:18:53 +02:00 |
|
Ben Irvin
|
22c82a7258
|
add custom auth tests
|
2022-08-11 12:17:27 +02:00 |
|
Ben Irvin
|
6882d5dd0a
|
fix test
|
2022-08-11 11:04:28 +02:00 |
|
Ben Irvin
|
5f0a9bdf84
|
only run one delete query
|
2022-08-11 11:04:12 +02:00 |
|
Ben Irvin
|
2d9c9a2119
|
update permissions works
|
2022-08-11 10:48:40 +02:00 |
|
Ben Irvin
|
f16d86f8ec
|
remove test
|
2022-08-10 17:36:21 +02:00 |
|
Ben Irvin
|
fe51a07d01
|
fix updates
|
2022-08-10 17:35:15 +02:00 |
|
Ben Irvin
|
4f39f046d9
|
test update
|
2022-08-10 10:57:19 +02:00 |
|
Ben Irvin
|
7d59934668
|
allow empty permissions array on non-custom tokens
|
2022-08-10 10:55:49 +02:00 |
|
Ben Irvin
|
6eba2d80bf
|
fix tests to work with custom token changes
|
2022-08-09 17:49:28 +02:00 |
|
Ben Irvin
|
e7294f812d
|
only return permissions with custom tokens
|
2022-08-09 17:48:52 +02:00 |
|
Ben Irvin
|
385fbe500e
|
add non-custom permissions param test
|
2022-08-09 10:53:16 +02:00 |
|
Ben Irvin
|
a5fcc3eaaf
|
fix failure tests
|
2022-08-09 10:49:44 +02:00 |
|
Ben Irvin
|
4229f41b4a
|
use ValidationError
|
2022-08-09 10:28:42 +02:00 |
|
Ben Irvin
|
895e0c1fe4
|
return permissions with custom token create
|
2022-08-09 10:27:34 +02:00 |
|
Ben Irvin
|
e3bd58c69a
|
update test names
|
2022-08-09 10:23:15 +02:00 |
|
Ben Irvin
|
8cc144679d
|
accept permissions params for api-tokens
|
2022-08-09 09:59:09 +02:00 |
|
Ben Irvin
|
f208e0c69d
|
skip custom tests
|
2022-08-08 22:54:58 +02:00 |
|
Ben Irvin
|
ff559cdf6b
|
custom token test
|
2022-08-08 22:54:08 +02:00 |
|
Ben Irvin
|
004a959a96
|
expect token status
|
2022-08-08 22:53:25 +02:00 |
|
Ben Irvin
|
d70ab84c89
|
remove randomness
|
2022-08-08 22:51:01 +02:00 |
|
Ben Irvin
|
01bbebff19
|
use constants
|
2022-08-08 22:50:36 +02:00 |
|
Ben Irvin
|
78063a5591
|
add test for custom without permissions
|
2022-08-08 17:21:10 +02:00 |
|
Ben Irvin
|
6641ba1f64
|
update tests
|
2022-08-08 17:09:17 +02:00 |
|
Ben Irvin
|
d78ec0243d
|
use constant
|
2022-08-08 17:06:38 +02:00 |
|
Ben Irvin
|
0b057257fd
|
add custom type
|
2022-08-08 15:00:46 +02:00 |
|
Convly
|
5c7576db65
|
Fix update & create
|
2022-08-05 12:31:16 +02:00 |
|
Convly
|
3a9709bdbf
|
Attach permission model to tokens, update api token' strategy & services
|
2022-08-05 12:01:36 +02:00 |
|
Convly
|
9aff190dc3
|
Merge branch 'api-token-v2/engine-abstraction' into api-token-v2/up-engine-impl
|
2022-08-01 10:51:22 +02:00 |
|
Convly
|
77d8499f65
|
Skip engine test while it's being refactored
|
2022-08-01 10:49:33 +02:00 |
|
Convly
|
31ef51e245
|
Update wording
|
2022-08-01 10:48:01 +02:00 |
|
Convly
|
72c721e8e2
|
Remove old engine test
|
2022-08-01 09:31:11 +02:00 |
|
Convly
|
4ebc128ffb
|
Make users-permissions auth strategy use the content API permission engine
|
2022-07-29 10:17:06 +02:00 |
|
Convly
|
43e360a641
|
Fix format permission handler argument
|
2022-07-28 17:05:29 +02:00 |
|