1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
Commit Graph

22 Commits

Author SHA1 Message Date
Juan Picado @jotadeveloper
a68d247a44
feat: add support for jwt on api (#896)
* feat: add support for jwt on api

* test: add unit test for sign token with jwt

add multiple scenarios with configuration file

* chore: add JWT verification on middleware

* chore: restore headless

* chore: restore middleware header validation

* refactor: fix login whether user exists

* refactor: JWT is signed asynchronously

* refactor: better structure and new naming convention

* test: add unit test for token signature

* test: add unit test for creating user with JWT enabled

#168

* docs: add security section jwt

* refactor: renable  web auth middleware

* test(auth): add legacy disabled scenario

* chore: update gitignore

* chore: add some es6 sugar

* feat: enable JWT token signature for new installations

* chore: add yaml files to git

I forgot add this before 😷

* chore: trace log on auth

in case we want more output
2018-08-21 08:05:34 +02:00
Juan Picado @jotadeveloper
b65b79bc09
test(storage): add checks for addVersion 2018-07-29 13:58:04 +02:00
Juan Picado @jotadeveloper
25c62f09ea
test(storage): add better test for changePackage 2018-07-29 10:28:28 +02:00
Juan Picado @jotadeveloper
57f0fa7610
refactor: unit test goes offline 2018-06-26 06:15:06 +02:00
Juan Picado @jotadeveloper
3f5a5c2345
refactor: improve code with es6 style 2018-06-24 10:11:52 +02:00
Juan Picado @jotadeveloper
40f2aa46b1
refactor: add tags test 2018-06-23 20:59:33 +02:00
Juan Picado @jotadeveloper
0fcbb8e1bd
refactor: fix inject issue on debug mode 2018-06-23 20:59:31 +02:00
Juan Picado @jotadeveloper
690b92a652
refactor: mirror and anti-loop 2018-06-23 20:59:27 +02:00
Juan Picado @jotadeveloper
970c0461df
refactor: more unit test constants usage 2018-06-23 20:59:19 +02:00
Juan Picado @jotadeveloper
d8455dd15a
refactor: using constants
relocate uplink token test to unit test
2018-06-23 20:57:20 +02:00
Juan Picado @jotadeveloper
9242d498d7
refactor: functional testing
* server now are executed in the jest setup phase
* disable one snapshot
2018-06-23 20:57:16 +02:00
Juan Picado @jotadeveloper
49c6191bb5
refactor: relocate unit test
no logic change, just path updates
2018-06-23 20:57:12 +02:00
Alex Kocharin
a3a59aa8f3 reorganize tests, and add new ones 2013-12-19 19:11:54 +04:00
Alex Kocharin
ef61515f28 try to fetch package from uplinks if user requested a tarball we don't know about
closes #29 + tests fix
2013-12-15 03:15:58 +04:00
Alex Kocharin
7ee2361700 better tests for various tags (including bad ones), ref #21 2013-12-12 01:22:35 +04:00
Alex Kocharin
8b314040d9 fixing race conditions when updating package data 2013-10-22 09:10:25 +04:00
Alex Kocharin
21ad8945d9 update 2013-09-28 20:46:55 +04:00
Alex Kocharin
5dbc825892 through -> streams2 migrate - final 2013-09-27 15:31:28 +04:00
Alex Kocharin
361d653613 testing fetching files from uplinks 2013-09-27 12:56:44 +04:00
Alex Kocharin
6dc6f31579 better tests 2013-09-27 06:27:11 +04:00
Alex Kocharin
709ffe8e39 tests 2013-09-25 14:01:55 +04:00
Alex Kocharin
6c78876dcd starting to write tests 2013-09-25 12:10:12 +04:00