@verdaccio/auth 8.0.0-next-8.11 → 8.0.0-next-8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +30 -24
  2. package/package.json +16 -12
  3. package/.babelrc +0 -3
  4. package/CHANGELOG.md +0 -1755
  5. package/src/auth.ts +0 -607
  6. package/src/index.ts +0 -3
  7. package/src/signature-legacy.ts +0 -66
  8. package/src/types.ts +0 -46
  9. package/src/utils.ts +0 -252
  10. package/test/auth-utils-middleware.spec.ts +0 -260
  11. package/test/auth-utils.spec.ts +0 -362
  12. package/test/auth.spec.ts +0 -722
  13. package/test/helper/plugin.ts +0 -43
  14. package/test/partials/config/yaml/security/security-basic.yaml +0 -12
  15. package/test/partials/config/yaml/security/security-empty.yaml +0 -1
  16. package/test/partials/config/yaml/security/security-jwt-legacy-enabled.yaml +0 -10
  17. package/test/partials/config/yaml/security/security-jwt.yaml +0 -6
  18. package/test/partials/config/yaml/security/security-legacy-disabled.yaml +0 -3
  19. package/test/partials/config/yaml/security/security-legacy.yaml +0 -3
  20. package/test/partials/config/yaml/security/security-missing.yaml +0 -0
  21. package/test/partials/config/yaml/security/security-no-legacy.yaml +0 -9
  22. package/test/partials/plugin/verdaccio-access-ok/access.js +0 -9
  23. package/test/partials/plugin/verdaccio-access-ok/package.json +0 -5
  24. package/test/partials/plugin/verdaccio-adduser/adduser.js +0 -25
  25. package/test/partials/plugin/verdaccio-adduser/package.json +0 -5
  26. package/test/partials/plugin/verdaccio-adduser-legacy/adduser.js +0 -25
  27. package/test/partials/plugin/verdaccio-adduser-legacy/package.json +0 -5
  28. package/test/partials/plugin/verdaccio-change-password/change.js +0 -32
  29. package/test/partials/plugin/verdaccio-change-password/package.json +0 -5
  30. package/test/partials/plugin/verdaccio-fail/fail.js +0 -14
  31. package/test/partials/plugin/verdaccio-fail/package.json +0 -5
  32. package/test/partials/plugin/verdaccio-fail-invalid-method/fail.js +0 -11
  33. package/test/partials/plugin/verdaccio-fail-invalid-method/package.json +0 -5
  34. package/test/partials/plugin/verdaccio-passthroug/package.json +0 -5
  35. package/test/partials/plugin/verdaccio-passthroug/passthroug.js +0 -9
  36. package/test/partials/plugin/verdaccio-success/package.json +0 -5
  37. package/test/partials/plugin/verdaccio-success/success.js +0 -9
  38. package/tsconfig.build.json +0 -9
  39. package/tsconfig.json +0 -32
package/README.md CHANGED
@@ -1,12 +1,19 @@
1
- # @verdaccio/auth
1
+ # @verdaccio/auth - Verdaccio Authentication
2
2
 
3
- [![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio)
4
- [![stackshare](https://img.shields.io/badge/Follow%20on-StackShare-blue.svg?logo=stackshare&style=flat)](https://stackshare.io/verdaccio)
5
- [![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
6
- [![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
7
- [![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/verdaccio/verdaccio)](https://www.tickgit.com/browse?repo=github.com/verdaccio/verdaccio)
3
+ [![Verdaccio Home](https://img.shields.io/badge/Homepage-Verdaccio-405236?style=flat)](https://verdaccio.org)
4
+ [![MIT License](https://img.shields.io/github/license/verdaccio/verdaccio?label=License&color=405236)](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
5
+ [![Verdaccio Latest](https://img.shields.io/npm/v/verdaccio?label=Latest%20Version&color=405236)](https://github.com/verdaccio/verdaccio)
6
+ [![This Package Latest](https://img.shields.io/npm/v/@verdaccio/auth?label=@verdaccio/auth&color=405236)](https://npmjs.com/package/@verdaccio/auth)
8
7
 
9
- [![Github](https://img.shields.io/github/stars/verdaccio/verdaccio.svg?style=social&label=Stars)](https://github.com/verdaccio/verdaccio/stargazers)
8
+ [![Documentation](https://img.shields.io/badge/Help-Verdaccio?style=flat&logo=Verdaccio&label=Verdaccio&color=cd4000)](https://verdaccio.org/docs)
9
+ [![Discord](https://img.shields.io/badge/Chat-Discord?style=flat&logo=Discord&label=Discord&color=cd4000)](https://discord.com/channels/388674437219745793)
10
+ [![Bluesky](https://img.shields.io/badge/Follow-Bluesky?style=flat&logo=Bluesky&label=Bluesky&color=cd4000)](https://bsky.app/profile/verdaccio.org)
11
+ [![Backers](https://img.shields.io/opencollective/backers/verdaccio?style=flat&logo=opencollective&label=Join%20Backers&color=cd4000)](https://opencollective.com/verdaccio/contribute)
12
+ [![Sponsors](https://img.shields.io/opencollective/sponsors/verdaccio?style=flat&logo=opencollective&label=Sponsor%20Us&color=cd4000)](https://opencollective.com/verdaccio/contribute)
13
+
14
+ [![Verdaccio Downloads](https://img.shields.io/npm/dm/verdaccio?style=flat&logo=npm&label=Npm%20Downloads&color=lightgrey)](https://www.npmjs.com/package/verdaccio)
15
+ [![Docker Pulls](https://img.shields.io/docker/pulls/verdaccio/verdaccio?style=flat&logo=docker&label=Docker%20Pulls&color=lightgrey)](https://hub.docker.com/r/verdaccio/verdaccio)
16
+ [![GitHub Stars](https://img.shields.io/github/stars/verdaccio?style=flat&logo=github&label=GitHub%20Stars%20%E2%AD%90&color=lightgrey)](https://github.com/verdaccio/verdaccio/stargazers)
10
17
 
11
18
  ## Donations
12
19
 
@@ -20,7 +27,7 @@ If you want to report a security vulnerability, please follow the steps which we
20
27
 
21
28
  ## Open Collective Sponsors
22
29
 
23
- Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/verdaccio#sponsor)]
30
+ Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/verdaccio/contribute)]
24
31
 
25
32
  [![sponsor](https://opencollective.com/verdaccio/sponsor/0/avatar.svg)](https://opencollective.com/verdaccio/sponsor/0/website)
26
33
  [![sponsor](https://opencollective.com/verdaccio/sponsor/1/avatar.svg)](https://opencollective.com/verdaccio/sponsor/1/website)
@@ -35,40 +42,39 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
35
42
 
36
43
  ## Open Collective Backers
37
44
 
38
- Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/verdaccio#backer)]
45
+ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/verdaccio/contribute)]
39
46
 
40
- [![backers](https://opencollective.com/verdaccio/backers.svg?width=890)](https://opencollective.com/verdaccio#backers)
47
+ [![backers](https://opencollective.com/verdaccio/backers.svg?width=890)](https://opencollective.com/verdaccio/contributes)
41
48
 
42
49
  ## Special Thanks
43
50
 
44
51
  Thanks to the following companies to help us to achieve our goals providing free open source licenses.
45
52
 
46
- [![jetbrain](assets/thanks/jetbrains/logo.png)](https://www.jetbrains.com/)
47
- [![crowdin](assets/thanks/crowdin/logo.png)](https://crowdin.com/)
48
- [![balsamiq](assets/thanks/balsamiq/logo.jpg)](https://balsamiq.com/)
53
+ [![jetbrains](https://github.com/verdaccio/verdaccio/blob/master/assets/thanks/jetbrains/logo.jpg?raw=true)](https://www.jetbrains.com/)
54
+ [![crowdin](https://github.com/verdaccio/verdaccio/blob/master/assets/thanks/crowdin/logo.png?raw=true)](https://crowdin.com/)
49
55
 
50
56
  ## Contributors
51
57
 
52
- This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
58
+ This project exists thanks to all the people who contribute. [[Contribute](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md)].
53
59
 
54
- [![contributors](https://opencollective.com/verdaccio/contributors.svg?width=890&button=true)](../../graphs/contributors)
60
+ [![contributors](https://opencollective.com/verdaccio/contributors.svg?width=890&button=true)](https://github.com/verdaccio/verdaccio/graphs/contributors)
55
61
 
56
- ### FAQ / Contact / Troubleshoot
62
+ ## FAQ / Contact / Troubleshoot
57
63
 
58
- If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.
64
+ If you have any issue you can try the following options. Do not hesitate to ask or check our issues database. Perhaps someone has asked already what you are looking for.
59
65
 
60
66
  - [Blog](https://verdaccio.org/blog/)
61
67
  - [Donations](https://opencollective.com/verdaccio)
62
68
  - [Reporting an issue](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md#reporting-a-bug)
63
- - [Running discussions](https://github.com/verdaccio/verdaccio/issues?q=is%3Aissue+is%3Aopen+label%3Adiscuss)
64
- - [Chat](http://chat.verdaccio.org/)
65
- - [Logos](https://verdaccio.org/docs/en/logo)
66
- - [Docker Examples](https://github.com/verdaccio/docker-examples)
69
+ - [Running discussions](https://github.com/orgs/verdaccio/discussions)
70
+ - [Chat](https://discord.com/channels/388674437219745793)
71
+ - [Logos](https://verdaccio.org/docs/logo)
72
+ - [Docker Examples](https://github.com/verdaccio/verdaccio/tree/master/docker-examples)
67
73
  - [FAQ](https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20)
68
74
 
69
- ### License
75
+ ## License
70
76
 
71
77
  Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
72
78
 
73
- The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch) files within the /assets folder) is
74
- [Creative Commons licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE-docs).
79
+ The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch files within the /assets folder) are
80
+ [Creative Commons licensed](https://creativecommons.org/licenses/by/4.0/).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@verdaccio/auth",
3
- "version": "8.0.0-next-8.11",
4
- "description": "logger",
3
+ "version": "8.0.0-next-8.13",
4
+ "description": "Verdaccio Authentication",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
7
7
  "author": {
@@ -10,7 +10,11 @@
10
10
  },
11
11
  "repository": {
12
12
  "type": "https",
13
- "url": "https://github.com/verdaccio/verdaccio"
13
+ "url": "https://github.com/verdaccio/verdaccio",
14
+ "directory": "packages/auth"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/verdaccio/verdaccio/issues"
14
18
  },
15
19
  "homepage": "https://verdaccio.org",
16
20
  "keywords": [
@@ -29,19 +33,19 @@
29
33
  },
30
34
  "license": "MIT",
31
35
  "dependencies": {
32
- "@verdaccio/config": "8.0.0-next-8.11",
33
- "@verdaccio/core": "8.0.0-next-8.11",
34
- "@verdaccio/loaders": "8.0.0-next-8.4",
35
- "@verdaccio/signature": "8.0.0-next-8.3",
36
- "@verdaccio/utils": "8.1.0-next-8.11",
36
+ "@verdaccio/config": "8.0.0-next-8.13",
37
+ "@verdaccio/core": "8.0.0-next-8.13",
38
+ "@verdaccio/loaders": "8.0.0-next-8.5",
39
+ "@verdaccio/signature": "8.0.0-next-8.5",
40
+ "@verdaccio/utils": "8.1.0-next-8.13",
37
41
  "debug": "4.4.0",
38
42
  "lodash": "4.17.21",
39
- "verdaccio-htpasswd": "13.0.0-next-8.11"
43
+ "verdaccio-htpasswd": "13.0.0-next-8.13"
40
44
  },
41
45
  "devDependencies": {
42
- "@verdaccio/middleware": "8.0.0-next-8.11",
43
- "@verdaccio/types": "13.0.0-next-8.3",
44
- "@verdaccio/logger": "8.0.0-next-8.11",
46
+ "@verdaccio/middleware": "8.0.0-next-8.13",
47
+ "@verdaccio/types": "13.0.0-next-8.4",
48
+ "@verdaccio/logger": "8.0.0-next-8.13",
45
49
  "express": "4.21.2",
46
50
  "supertest": "7.0.0"
47
51
  },
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "../../.babelrc"
3
- }