@verdaccio/auth 8.0.0-next-8.38 → 8.0.0
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.
- package/README.md +26 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -15,6 +15,32 @@
|
|
|
15
15
|
[](https://hub.docker.com/r/verdaccio/verdaccio)
|
|
16
16
|
[](https://github.com/verdaccio/verdaccio/stargazers)
|
|
17
17
|
|
|
18
|
+
> **Note:** This package is mostly for internal use by Verdaccio and is only intended to be used with Verdaccio 6.x.
|
|
19
|
+
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
The `@verdaccio/auth` package provides the authentication layer for Verdaccio. It handles plugin loading, user authentication, JWT and legacy AES token management, and package-level access control (access, publish, unpublish).
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @verdaccio/auth
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { Auth } from '@verdaccio/auth';
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The `Auth` class manages:
|
|
37
|
+
|
|
38
|
+
- **Plugin Loading** - Dynamically loads authentication plugins (defaults to `verdaccio-htpasswd`)
|
|
39
|
+
- **User Authentication** - Validates user credentials through configured auth plugins
|
|
40
|
+
- **Token Management** - Supports both JWT and legacy AES token encryption/decryption
|
|
41
|
+
- **Access Control** - Authorizes package access, publish, and unpublish operations
|
|
42
|
+
- **Middleware** - Generates API and Web UI JWT middleware for Express
|
|
43
|
+
|
|
18
44
|
## Donations
|
|
19
45
|
|
|
20
46
|
Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/auth",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Verdaccio Authentication",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@verdaccio/config": "8.0.0
|
|
37
|
-
"@verdaccio/core": "8.0.0
|
|
38
|
-
"@verdaccio/loaders": "8.0.0
|
|
39
|
-
"@verdaccio/signature": "8.0.0
|
|
36
|
+
"@verdaccio/config": "8.0.0",
|
|
37
|
+
"@verdaccio/core": "8.0.0",
|
|
38
|
+
"@verdaccio/loaders": "8.0.0",
|
|
39
|
+
"@verdaccio/signature": "8.0.0",
|
|
40
40
|
"debug": "4.4.3",
|
|
41
41
|
"lodash": "4.18.1",
|
|
42
|
-
"verdaccio-htpasswd": "13.0.0
|
|
42
|
+
"verdaccio-htpasswd": "13.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@verdaccio/middleware": "8.0.0
|
|
46
|
-
"@verdaccio/types": "13.0.0
|
|
47
|
-
"@verdaccio/logger": "8.0.0
|
|
45
|
+
"@verdaccio/middleware": "8.0.0",
|
|
46
|
+
"@verdaccio/types": "13.0.0",
|
|
47
|
+
"@verdaccio/logger": "8.0.0",
|
|
48
48
|
"express": "4.22.1",
|
|
49
49
|
"supertest": "7.1.4",
|
|
50
50
|
"vitest": "3.2.4"
|