Dieter Stinglhamber
|
c143d58bc1
|
fix typos
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
930156a574
|
return deleted token
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
946d3a0ea3
|
add DELETE route and logic
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
643f26975d
|
use plain text in tests in favor of constants
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
3321aaa92c
|
extract token types in a constant
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
6fa87bb146
|
update test
|
2021-09-24 12:05:38 +02:00 |
|
Dieter Stinglhamber
|
a804b908c8
|
adds tests
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
fd0e206d83
|
add e2e tests
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
fd2b0d81ab
|
implement GET endpoint to list the api tokens
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
03e9ff6084
|
use spyOn to mock crypto
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
6a4a4cc1f9
|
minor fixes
|
2021-09-24 12:05:37 +02:00 |
|
Dieter Stinglhamber
|
bfcd119311
|
fix service unit test
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
a1a072df46
|
avoid mutation of the body
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
bfcebc9bae
|
improve tests and minor fixes
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
305547b9bb
|
use createHmac in favour of createHash for added security
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
0be0c98d72
|
add test to support salt errors
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
ef36034acf
|
throw an error if there is an issue with the salt configuration
|
2021-09-24 12:05:36 +02:00 |
|
Dieter Stinglhamber
|
e16ce91ade
|
add test to support trimming
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
4b7a1eb48f
|
trim name and description before validation
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
e9b897b66b
|
store the hashed accessKey in the database
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
5305f2e757
|
fix issues after rebasing on release/v4
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
1c10cf4acf
|
improve jsdoc comments
|
2021-09-24 12:05:35 +02:00 |
|
Dieter Stinglhamber
|
f2c6af61ee
|
fix exists function
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
4d27d9de51
|
cleanup unnecessary code
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
3fb6b57808
|
implement POST endpoint to create api tokens
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
36af3134be
|
fix displayName for create and delete permissions
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
33374f4193
|
update snapshot for EE without SSO test
|
2021-09-24 12:05:34 +02:00 |
|
Dieter Stinglhamber
|
d60659df89
|
update snapshot for EE test
|
2021-09-24 12:05:33 +02:00 |
|
Dieter Stinglhamber
|
8d9b957f8c
|
add CRUD permission for the api token
|
2021-09-24 12:05:33 +02:00 |
|
Dieter Sting
|
e4d443ed09
|
cast isAuthenticated as a boolean to avoid side effects
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
|
2021-09-24 09:59:19 +02:00 |
|
Dieter Stinglhamber
|
bc9bc1c498
|
remove commented code
|
2021-09-24 09:44:53 +02:00 |
|
Dieter Stinglhamber
|
3c1dcbe76d
|
refactor policy API
|
2021-09-24 09:35:25 +02:00 |
|
Alexandre Bodin
|
549773698a
|
Fix distinct
|
2021-09-22 18:49:04 +02:00 |
|
Alexandre Bodin
|
c5f9d16105
|
Rename creator fields
|
2021-09-22 17:06:16 +02:00 |
|
Alexandre Bodin
|
58e024d3ad
|
use columnName snake casing and rename timestamp attributes
|
2021-09-22 17:05:30 +02:00 |
|
Alexandre Bodin
|
0f3f984ea7
|
Init migration v4
- Hooks registry
- D&P CT migrations
- i18N CT migrations
- Umzug with js / sql migrations
- Eslint updates
|
2021-09-13 12:03:12 +02:00 |
|
Alexandre Bodin
|
ef12731bd3
|
Fix missing public access
|
2021-09-08 18:47:22 +02:00 |
|
Alexandre Bodin
|
a14b16af51
|
Move admin auth to global auth system
|
2021-09-08 16:16:16 +02:00 |
|
Alexandre Bodin
|
37bacdb691
|
Start fixing tests
|
2021-09-07 21:03:30 +02:00 |
|
Alexandre Bodin
|
c6c4a62d2d
|
Cleanup layout not needed
|
2021-09-07 16:03:54 +02:00 |
|
Alexandre Bodin
|
ba15f31f89
|
Cleanup admin ee and middlewares
|
2021-09-07 15:11:08 +02:00 |
|
Alexandre Bodin
|
0ff3269c3a
|
Use the right api
|
2021-09-07 15:11:08 +02:00 |
|
Alexandre Bodin
|
58dde6837f
|
use proxy and router prefix config in server
|
2021-09-07 15:11:04 +02:00 |
|
Alexandre Bodin
|
4349d6b822
|
Init new routing layer
|
2021-09-07 15:11:04 +02:00 |
|
Alexandre Bodin
|
3784cc5b5e
|
Implement rest api populate syntax and Init refactor convert query params for v4
|
2021-08-31 19:31:29 +02:00 |
|
Alexandre Bodin
|
8f5cb90863
|
Migrate admin policies
|
2021-08-25 15:16:17 +02:00 |
|
Alexandre Bodin
|
f4a4e2ce26
|
Move routes to js when possible and refactor policies to be objects
|
2021-08-24 13:59:43 +02:00 |
|
Alexandre Bodin
|
0b3c7392c6
|
Keep on migrating admin to new structure
|
2021-08-23 22:41:22 +02:00 |
|
Alexandre Bodin
|
47c3900c07
|
Update createContentType to expose a simpler object
|
2021-08-23 22:25:31 +02:00 |
|
Alexandre Bodin
|
56600eca2a
|
Move admin lifecycle functions and rename models to content-types
|
2021-08-23 22:04:15 +02:00 |
|