@jskit-ai/auth-web 0.2.41 → 0.2.43

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - `POST /api/login/pass` reads its settings with `resolvePassSignInFromEnv` from `@jskit-ai/auth-pass/server`, a new dependency, instead of auth-core's removed `./server/passSignIn`. The route behaves as before.
6
+
5
7
  - `POST /api/login/pass`, registered only while `AUTH_PASS_PUBLIC_KEY` is set: an issuer's page posts a one-time pass as the form field `pass`, and a pass that signs in sets the session cookies and answers 303 to `/`; a refused one answers 303 to `/auth/login` with `error=sign_in_unavailable`, `error_description` and `error_code`, which the sign-in page shows. It takes form bodies in a Fastify scope of its own, registered at boot, so the feature now requires `runtime.fastify`; it is public, takes no CSRF token (the pass authenticates it) and answers `Cache-Control: no-store`. Its rate limit is `config.auth.rateLimits.passSignIn` (20 a minute per address); one that no route limiter would enforce stops startup.
6
8
  - The package manifest no longer requires `runtime.actions`: its feature declares no actions, so since the kernel's 9646ecf21 it does not require the action catalogue, and the catalog's manifest check reported the requirement as one no server provider has.
7
9
  - `SecondFactorSettings` emits `codes-saved` when the person says they saved a new set of recovery codes (after setting an authenticator up, or replacing its codes), so a page that needs an authenticator before it goes on, such as a console's way in, goes on then; and its recovery codes step has **Download codes** beside **Copy codes**, which saves them as `recovery-codes.txt`, one a line (new message key `jskit.auth.secondFactor.codes.download`). `SecondFactorDialog` gives focus back to the element that had it when it opened, the control that sent the refused request, after the code as after a cancel: the dialog opens for a request and has no activator, so focus used to fall to the page's body.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/auth-web",
3
- "version": "0.2.41",
3
+ "version": "0.2.43",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -28,13 +28,14 @@
28
28
  "./locales/en.json": "./locales/en.json"
29
29
  },
30
30
  "dependencies": {
31
+ "@jskit-ai/auth-pass": "0.1.0",
31
32
  "uqr": "0.1.3"
32
33
  },
33
34
  "peerDependencies": {
34
- "@jskit-ai/auth-core": "0.2.28",
35
+ "@jskit-ai/auth-core": "0.2.29",
35
36
  "@jskit-ai/http-runtime": "0.2.26",
36
37
  "@jskit-ai/kernel": "0.2.26",
37
- "@jskit-ai/shell-web": "0.2.36",
38
+ "@jskit-ai/shell-web": "0.2.37",
38
39
  "@tanstack/vue-query": "^5.90.5",
39
40
  "pinia": "^4.0.3",
40
41
  "vue": "^3.5.44",
@@ -346,6 +347,6 @@
346
347
  }
347
348
  },
348
349
  "devDependencies": {
349
- "@jskit-ai/material-web": "0.1.7"
350
+ "@jskit-ai/material-web": "0.1.8"
350
351
  }
351
352
  }
@@ -1,5 +1,5 @@
1
1
  import { isDevAuthBootstrapEnabled, resolveDevAuthPolicyFromEnv } from "@jskit-ai/auth-core/server/devAuth";
2
- import { resolvePassSignInFromEnv } from "@jskit-ai/auth-core/server/passSignIn";
2
+ import { resolvePassSignInFromEnv } from "@jskit-ai/auth-pass/server";
3
3
  import { resolveAuthRateLimits } from "./authRateLimits.js";
4
4
  import { AuthController } from "./controllers/AuthController.js";
5
5
  import { buildRoutes } from "./routes/authRoutes.js";