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 |
|
Simone Taeggi
|
3e7a45fdb8
|
define a new action to prevent the access of the api token page in the settings
|
2022-08-23 16:27:26 +02:00 |
|
Ben Irvin
|
7e446b7414
|
add token usage tests
|
2022-08-23 15:04:24 +02:00 |
|
Ben Irvin
|
8803dbbd46
|
fix tests
|
2022-08-23 14:14:04 +02:00 |
|
Ben Irvin
|
e47db1a490
|
add comment
|
2022-08-23 13:52:33 +02:00 |
|
Ben Irvin
|
3c724eb483
|
rename tests
|
2022-08-23 13:52:00 +02:00 |
|
Ben Irvin
|
dbe79dc605
|
fix data type
|
2022-08-23 13:51:23 +02:00 |
|
Ben Irvin
|
e54e5f7ddc
|
fix lastUsedAt
|
2022-08-23 13:45:27 +02:00 |
|
Ben Irvin
|
7b389e49a9
|
add test todos
|
2022-08-23 13:03:15 +02:00 |
|
Ben Irvin
|
36b53e8046
|
more tests and fixes
|
2022-08-23 12:53:20 +02:00 |
|
Ben Irvin
|
28f078be0a
|
lifespan validation
|
2022-08-23 10:51:53 +02:00 |
|
Ben Irvin
|
1cf0cb5c4c
|
fix test
|
2022-08-23 10:49:27 +02:00 |
|
Ben Irvin
|
da00ba89e1
|
lifespan unit test
|
2022-08-22 18:46:22 +02:00 |
|
Ben Irvin
|
0918729d21
|
Merge branch 'features/api-token-v2' into api-token-v2/backend-expirations
|
2022-08-22 17:54:33 +02:00 |
|
Ben Irvin
|
aa5a1c7ed7
|
regenerate throws on invalid id
|
2022-08-22 12:33:00 +02:00 |
|
Ben Irvin
|
dabbd42ca7
|
assert acessKey has changed
|
2022-08-22 12:22:36 +02:00 |
|
Ben Irvin
|
ae90cf5fd0
|
Merge branch 'api-token-v2/regenerate-tokens-api' into api-token-v2/backend-expirations
|
2022-08-22 12:11:46 +02:00 |
|
Ben Irvin
|
6de74793df
|
add test todos
|
2022-08-22 09:26:20 +02:00 |
|
Ben Irvin
|
55dee1a09d
|
verify expiration of token
|
2022-08-22 09:25:55 +02:00 |
|
Ben Irvin
|
a063f21474
|
jsdoc comments
|
2022-08-19 16:53:51 +02:00 |
|
Ben Irvin
|
c5eb2b1a9d
|
rename mapTokenPermissions to flattenTokenPermissions
|
2022-08-19 16:45:16 +02:00 |
|
Ben Irvin
|
d4f03c7d56
|
declare functions before use
|
2022-08-19 16:42:55 +02:00 |
|
Ben Irvin
|
c6aef125c9
|
fix jsdoc params
|
2022-08-19 16:41:39 +02:00 |
|
Ben Irvin
|
e79617b094
|
lastUsedAt isn't a valid update field
|
2022-08-19 16:37:41 +02:00 |
|
Ben Irvin
|
e3961fb298
|
rename lastUsed to lastUsedAt
|
2022-08-19 16:36:28 +02:00 |
|
Ben Irvin
|
36d37706ce
|
add lifespan and expiresAt fields
|
2022-08-19 16:33:58 +02:00 |
|