@jskit-ai/auth-provider-local-core 0.1.49 → 0.1.50
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-provider-local-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -11,8 +11,111 @@
|
|
|
11
11
|
"./server/lib/index": "./src/server/lib/index.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@jskit-ai/auth-core": "0.1.
|
|
15
|
-
"@jskit-ai/kernel": "0.1.
|
|
14
|
+
"@jskit-ai/auth-core": "0.1.147",
|
|
15
|
+
"@jskit-ai/kernel": "0.1.149",
|
|
16
16
|
"nodemailer": "^9.0.3"
|
|
17
|
+
},
|
|
18
|
+
"description": "Local auth provider with a file backend default and no database requirement.",
|
|
19
|
+
"jskit": {
|
|
20
|
+
"kind": "runtime",
|
|
21
|
+
"capabilities": {
|
|
22
|
+
"provides": [
|
|
23
|
+
"auth.provider.local",
|
|
24
|
+
"auth.provider"
|
|
25
|
+
],
|
|
26
|
+
"requires": [
|
|
27
|
+
"auth.access"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"runtime": {
|
|
31
|
+
"server": {
|
|
32
|
+
"providerEntrypoint": "src/server/providers/AuthLocalServiceProvider.js",
|
|
33
|
+
"providers": [
|
|
34
|
+
{
|
|
35
|
+
"entrypoint": "src/server/providers/AuthLocalServiceProvider.js",
|
|
36
|
+
"export": "AuthLocalServiceProvider"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"entrypoint": "src/server/providers/AuthProviderServiceProvider.js",
|
|
40
|
+
"export": "AuthProviderServiceProvider"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"metadata": {
|
|
46
|
+
"apiSummary": {
|
|
47
|
+
"surfaces": [
|
|
48
|
+
{
|
|
49
|
+
"subpath": "./server/providers/AuthLocalServiceProvider",
|
|
50
|
+
"summary": "Exports the local auth provider service provider."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"subpath": "./server/lib/index",
|
|
54
|
+
"summary": "Exports local auth service, file backend helpers, password strategy helpers, and local auth register hook decorators."
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"containerTokens": {
|
|
58
|
+
"server": [
|
|
59
|
+
"authService",
|
|
60
|
+
"auth.local.backend",
|
|
61
|
+
"auth.local.passwordStrategy"
|
|
62
|
+
],
|
|
63
|
+
"client": []
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"ci": {
|
|
68
|
+
"environment": {
|
|
69
|
+
"AUTH_PROVIDER": "local"
|
|
70
|
+
},
|
|
71
|
+
"services": [],
|
|
72
|
+
"steps": []
|
|
73
|
+
},
|
|
74
|
+
"mutations": {
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"runtime": {
|
|
77
|
+
"@jskit-ai/auth-core": "0.1.147",
|
|
78
|
+
"@jskit-ai/kernel": "0.1.149",
|
|
79
|
+
"nodemailer": "^9.0.3",
|
|
80
|
+
"dotenv": "^16.4.5"
|
|
81
|
+
},
|
|
82
|
+
"dev": {}
|
|
83
|
+
},
|
|
84
|
+
"packageJson": {
|
|
85
|
+
"scripts": {}
|
|
86
|
+
},
|
|
87
|
+
"procfile": {},
|
|
88
|
+
"files": [],
|
|
89
|
+
"text": [
|
|
90
|
+
{
|
|
91
|
+
"file": ".env",
|
|
92
|
+
"op": "upsert-env",
|
|
93
|
+
"key": "AUTH_PROVIDER",
|
|
94
|
+
"value": "local",
|
|
95
|
+
"reason": "Select local auth as the auth provider.",
|
|
96
|
+
"category": "runtime-config",
|
|
97
|
+
"id": "auth-provider"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"file": ".env",
|
|
101
|
+
"op": "upsert-env",
|
|
102
|
+
"key": "AUTH_LOCAL_BACKEND",
|
|
103
|
+
"value": "file",
|
|
104
|
+
"reason": "Use the built-in local file auth backend.",
|
|
105
|
+
"category": "runtime-config",
|
|
106
|
+
"id": "auth-local-backend"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"file": ".gitignore",
|
|
110
|
+
"op": "append-text",
|
|
111
|
+
"position": "bottom",
|
|
112
|
+
"skipIfContains": ".jskit/auth/",
|
|
113
|
+
"value": "\n.jskit/auth/\n",
|
|
114
|
+
"reason": "Ignore local auth runtime state.",
|
|
115
|
+
"category": "runtime-state",
|
|
116
|
+
"id": "auth-local-store-gitignore"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
17
120
|
}
|
|
18
121
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import test from "node:test";
|
|
4
|
-
import
|
|
4
|
+
import packageJson from "../package.json" with { type: "json" };
|
|
5
|
+
|
|
6
|
+
const packageMetadata = packageJson.jskit;
|
|
5
7
|
|
|
6
8
|
test("local auth contributes only its provider selection to CI", () => {
|
|
7
|
-
assert.deepEqual(
|
|
9
|
+
assert.deepEqual(packageMetadata.ci, {
|
|
8
10
|
environment: {
|
|
9
11
|
AUTH_PROVIDER: "local"
|
|
10
12
|
},
|
|
@@ -17,7 +19,7 @@ test("local auth scaffolds the Nodemailer version used by the package", async ()
|
|
|
17
19
|
const packageJson = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
|
|
18
20
|
|
|
19
21
|
assert.equal(
|
|
20
|
-
|
|
22
|
+
packageMetadata.mutations.dependencies.runtime.nodemailer,
|
|
21
23
|
packageJson.dependencies.nodemailer
|
|
22
24
|
);
|
|
23
25
|
});
|
package/package.descriptor.mjs
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
export default Object.freeze({
|
|
2
|
-
"packageVersion": 1,
|
|
3
|
-
"packageId": "@jskit-ai/auth-provider-local-core",
|
|
4
|
-
"version": "0.1.49",
|
|
5
|
-
"kind": "runtime",
|
|
6
|
-
"description": "Local auth provider with a file backend default and no database requirement.",
|
|
7
|
-
"dependsOn": [
|
|
8
|
-
"@jskit-ai/auth-core",
|
|
9
|
-
"@jskit-ai/value-app-config-shared"
|
|
10
|
-
],
|
|
11
|
-
"capabilities": {
|
|
12
|
-
"provides": [
|
|
13
|
-
"auth.provider.local",
|
|
14
|
-
"auth.provider"
|
|
15
|
-
],
|
|
16
|
-
"requires": [
|
|
17
|
-
"auth.access"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"runtime": {
|
|
21
|
-
"server": {
|
|
22
|
-
"providerEntrypoint": "src/server/providers/AuthLocalServiceProvider.js",
|
|
23
|
-
"providers": [
|
|
24
|
-
{
|
|
25
|
-
"entrypoint": "src/server/providers/AuthLocalServiceProvider.js",
|
|
26
|
-
"export": "AuthLocalServiceProvider"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"entrypoint": "src/server/providers/AuthProviderServiceProvider.js",
|
|
30
|
-
"export": "AuthProviderServiceProvider"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"metadata": {
|
|
36
|
-
"apiSummary": {
|
|
37
|
-
"surfaces": [
|
|
38
|
-
{
|
|
39
|
-
"subpath": "./server/providers/AuthLocalServiceProvider",
|
|
40
|
-
"summary": "Exports the local auth provider service provider."
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"subpath": "./server/lib/index",
|
|
44
|
-
"summary": "Exports local auth service, file backend helpers, password strategy helpers, and local auth register hook decorators."
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"containerTokens": {
|
|
48
|
-
"server": [
|
|
49
|
-
"authService",
|
|
50
|
-
"auth.local.backend",
|
|
51
|
-
"auth.local.passwordStrategy"
|
|
52
|
-
],
|
|
53
|
-
"client": []
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"ci": {
|
|
58
|
-
"environment": {
|
|
59
|
-
"AUTH_PROVIDER": "local"
|
|
60
|
-
},
|
|
61
|
-
"services": [],
|
|
62
|
-
"steps": []
|
|
63
|
-
},
|
|
64
|
-
"mutations": {
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"runtime": {
|
|
67
|
-
"@jskit-ai/auth-core": "0.1.146",
|
|
68
|
-
"@jskit-ai/kernel": "0.1.147",
|
|
69
|
-
"nodemailer": "^9.0.3",
|
|
70
|
-
"dotenv": "^16.4.5"
|
|
71
|
-
},
|
|
72
|
-
"dev": {}
|
|
73
|
-
},
|
|
74
|
-
"packageJson": {
|
|
75
|
-
"scripts": {}
|
|
76
|
-
},
|
|
77
|
-
"procfile": {},
|
|
78
|
-
"files": [],
|
|
79
|
-
"text": [
|
|
80
|
-
{
|
|
81
|
-
"file": ".env",
|
|
82
|
-
"op": "upsert-env",
|
|
83
|
-
"key": "AUTH_PROVIDER",
|
|
84
|
-
"value": "local",
|
|
85
|
-
"reason": "Select local auth as the auth provider.",
|
|
86
|
-
"category": "runtime-config",
|
|
87
|
-
"id": "auth-provider"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"file": ".env",
|
|
91
|
-
"op": "upsert-env",
|
|
92
|
-
"key": "AUTH_LOCAL_BACKEND",
|
|
93
|
-
"value": "file",
|
|
94
|
-
"reason": "Use the built-in local file auth backend.",
|
|
95
|
-
"category": "runtime-config",
|
|
96
|
-
"id": "auth-local-backend"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"file": ".gitignore",
|
|
100
|
-
"op": "append-text",
|
|
101
|
-
"position": "bottom",
|
|
102
|
-
"skipIfContains": ".jskit/auth/",
|
|
103
|
-
"value": "\n.jskit/auth/\n",
|
|
104
|
-
"reason": "Ignore local auth runtime state.",
|
|
105
|
-
"category": "runtime-state",
|
|
106
|
-
"id": "auth-local-store-gitignore"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
});
|