Ben Irvin
|
b4c8cae41d
|
Merge pull request #14234 from strapi/api-token-v2/allow-empty-permissions-array
allow empty array of permissions
|
2022-08-29 12:34:57 +02:00 |
|
Simone
|
4f7db2ef72
|
Merge pull request #14180 from strapi/api-token-v2/settings-access-api-token
RBAC on API tokens settings access
|
2022-08-29 11:30:26 +02:00 |
|
Ben Irvin
|
2dea049a8c
|
fix test
|
2022-08-29 10:50:46 +02:00 |
|
Ben Irvin
|
7ed24a9edf
|
Merge pull request #14192 from strapi/api-token-v2/regenerate-tokens-api
Api Token v2/add regenerate controller tests
|
2022-08-29 10:38:42 +02:00 |
|
Ben Irvin
|
9aed7d9540
|
rename token-permission to api-token-permission
|
2022-08-29 09:17:31 +02:00 |
|
Ben Irvin
|
697662421f
|
allow empty array of permissions
|
2022-08-26 16:11:08 +02:00 |
|
Ben Irvin
|
16537f199e
|
validate lifespan
|
2022-08-26 15:27:47 +02:00 |
|
Jean-Sébastien Herbaux
|
d3357b87af
|
Merge pull request #14216 from strapi/api-token-v2/fix-update-custom-token-permissions
Fix permissions update for custom API tokens
|
2022-08-26 15:24:06 +02:00 |
|
Bassel Kanso
|
025c4d154f
|
Merge pull request #14200 from strapi/api-token-v2/permissions-route
Api token layout route
|
2022-08-26 12:44:12 +03:00 |
|
Ben Irvin
|
14c183ce51
|
validate lifespan
|
2022-08-26 10:33:18 +02:00 |
|
Bassel Kanso
|
db4c3af1f9
|
remove test
|
2022-08-26 10:42:01 +03:00 |
|
Bassel Kanso
|
3ce256e279
|
add content api permissions controller to it's separate file
|
2022-08-26 10:02:13 +03:00 |
|
Convly
|
29cea1d7cb
|
null guard for expiration checks
|
2022-08-25 16:56:50 +02:00 |
|
Convly
|
d834bf6f48
|
Fix tests
|
2022-08-25 16:27:18 +02:00 |
|
Bassel Kanso
|
4d72da1257
|
Merge branch 'features/api-token-v2' into api-token-v2/permissions-route
|
2022-08-25 16:59:12 +03:00 |
|
Bassel Kanso
|
a772f8a8ac
|
add content type permissions to the permissions route
|
2022-08-25 16:57:45 +03:00 |
|
Convly
|
87520328bd
|
Fix expiration date checks on api token strategy
|
2022-08-25 15:44:10 +02:00 |
|
Convly
|
3568034cb4
|
Add test for create & update custom token permissions
|
2022-08-25 15:16:53 +02:00 |
|
Convly
|
8732d07555
|
Prevent duplicate permissions on create too
|
2022-08-25 14:25:09 +02:00 |
|
Convly
|
2c71d7d069
|
Fix permissions update for custom token (uniqueness)
|
2022-08-25 14:23:36 +02:00 |
|
Jean-Sébastien Herbaux
|
4c6c5e5218
|
Merge pull request #14214 from strapi/api-token-v2/fix-update-checks
Fix API tokens' update due to wrong enum values
|
2022-08-25 14:12:46 +02:00 |
|
Convly
|
46b28db877
|
Fix invalid enum value used to assert 'changingTypeToCustom'
|
2022-08-25 13:56:24 +02:00 |
|
Ben Irvin
|
9e42345011
|
yup blocks unexpected fields
|
2022-08-25 12:01:52 +02:00 |
|
Simone Taeggi
|
cce909d1ae
|
add the access action to the e2e tests
|
2022-08-25 10:00:52 +02:00 |
|
Simone Taeggi
|
3017fd5e41
|
update e2e test
|
2022-08-25 08:52:42 +02:00 |
|
Ben Irvin
|
2195e9a2f2
|
fix comment
|
2022-08-24 19:05:13 +02:00 |
|
Ben Irvin
|
3ca863d80b
|
fix failing test
|
2022-08-24 19:02:38 +02:00 |
|
Ben Irvin
|
2b30007f86
|
lifespan must be greater than zero
|
2022-08-24 18:05:51 +02:00 |
|
Ben Irvin
|
2359ca1cc6
|
fix tests
|
2022-08-24 18:05:36 +02:00 |
|
Ben Irvin
|
53be3b5d30
|
make name unique
|
2022-08-24 18:04:12 +02:00 |
|
Bassel Kanso
|
e8bca67186
|
create route for api token layout
|
2022-08-24 18:08:17 +03:00 |
|
Ben Irvin
|
6577a9533c
|
use lodash/fp
|
2022-08-24 16:29:39 +02:00 |
|
Ben Irvin
|
574448deae
|
remove comments
|
2022-08-24 16:27:48 +02:00 |
|
Ben Irvin
|
a3a584d176
|
allow lifespan to update
|
2022-08-24 16:27:15 +02:00 |
|
Ben Irvin
|
1bd9fbdd85
|
fix return type
|
2022-08-24 16:26:40 +02:00 |
|
Ben Irvin
|
568892af97
|
add controller tests
|
2022-08-24 13:01:29 +02:00 |
|
Ben Irvin
|
589a5bd1cf
|
fix test timing
|
2022-08-24 12:37:21 +02:00 |
|
Ben Irvin
|
58a152ff2e
|
token counts as expired when zero
|
2022-08-24 10:55:28 +02:00 |
|
Ben Irvin
|
93f6ca30ef
|
typo
|
2022-08-24 10:54:34 +02:00 |
|
Ben Irvin
|
73345efa54
|
add tests for expiry
|
2022-08-24 10:48:24 +02:00 |
|
Ben Irvin
|
412f21e973
|
token doesn't authorize when expired
|
2022-08-24 10:32:24 +02:00 |
|
Ben Irvin
|
98d82a0285
|
fix tests
|
2022-08-24 10:01:36 +02:00 |
|
Simone Taeggi
|
9f634ac98f
|
Merge branch 'features/api-token-v2' into api-token-v2/settings-access-api-token
|
2022-08-24 09:35:42 +02:00 |
|
Ben Irvin
|
43465af282
|
improve lifespan validation
|
2022-08-24 09:10:30 +02:00 |
|
Ben Irvin
|
3850c9452b
|
Merge branch 'features/api-token-v2' into api-token-v2/backend-expirations
|
2022-08-24 09:00:04 +02:00 |
|
Ben Irvin
|
d4c3c6e9af
|
Merge branch 'api-token-v2/fix-failing-e2e-tests' into api-token-v2/regenerate-tokens-api
|
2022-08-23 20:18:13 +02:00 |
|
Ben Irvin
|
0b8ecaaccb
|
sort permissions to compare
|
2022-08-23 20:08:45 +02:00 |
|
Ben Irvin
|
5085f5ed45
|
actually fix test
|
2022-08-23 19:19:56 +02:00 |
|
Ben Irvin
|
353efdf84c
|
fix test
|
2022-08-23 18:28:34 +02:00 |
|
Ben Irvin
|
97f91dd7a5
|
fix failing tests
|
2022-08-23 17:24:29 +02:00 |
|