@entifix/testing-auth 0.1.0-0 → 0.1.1
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 +21 -0
- package/package.json +5 -4
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @entifix/testing-auth
|
|
2
|
+
|
|
3
|
+
Authentication stubs for tests that need a signed-in principal and do not care how it got there: a token service that always answers the same claims, a policy that grants every request, and a session cookie to send.
|
|
4
|
+
|
|
5
|
+
Test-only. Depend on it as a `devDependency`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add -D @entifix/testing-auth
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entry points
|
|
14
|
+
|
|
15
|
+
| Import | What it holds |
|
|
16
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `@entifix/testing-auth` | `makeFixedTokenService`, `FixedTokenServiceLayer`, `AllowAllPolicyLayer`, `stubAccessToken`, `stubSessionCookie`, `STUB_CLAIMS` |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
Tier 5 (testing) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entifix/testing-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Authentication stubs for tests: a fixed token service, an allow-all policy, and ready-made session cookies.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -54,9 +55,9 @@
|
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@swc/helpers": "0.5.23",
|
|
57
|
-
"@entifix/
|
|
58
|
-
"@entifix/core": "0.1.
|
|
59
|
-
"@entifix/
|
|
58
|
+
"@entifix/business": "0.1.1",
|
|
59
|
+
"@entifix/core": "0.1.1",
|
|
60
|
+
"@entifix/authz": "0.1.1"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
63
|
"effect": ">=3.22 <4"
|