@atol-sh/js 0.3.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -6,6 +6,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.1] - 2026-11-22
10
+
11
+ ### Fixed
12
+
13
+ - RP-initiated logout no longer sends the authorization-only `audience` query
14
+ parameter. Audience-configured clients can sign out through Atol's strict
15
+ OIDC logout endpoint.
16
+
17
+ ## [0.4.0] - 2026-10-26
18
+
19
+ ### Added
20
+
21
+ - `AtolBrowserAuth.canRestartLogin()` exposes a read-only capability for UI
22
+ recovery, and `restartLogin()` explicitly restarts only the exact
23
+ response-vault authorization captured by a rejected signed-out
24
+ initialization.
25
+
26
+ ### Security
27
+
28
+ - Cross-tab restart first owns and persists a new signed-out generation,
29
+ clears local session state, and exact-fences the abandoned reference,
30
+ binding, mode, full generation, and active slot. Ambiguous settlement,
31
+ contention, supersession before or during restart, and cleanup failure remain
32
+ fail-closed and start
33
+ no replacement authorization.
34
+
9
35
  ## [0.3.0] - Staged, unpublished
10
36
 
11
37
  This staged release consolidates every change since the last published version,
package/README.md CHANGED
@@ -124,7 +124,11 @@ freshness check and renews immediately; `stepUp()` forces re-authentication
124
124
  (`prompt=login`, `max_age=0`, `acr_values=mfa` by default) for a sensitive
125
125
  operation that requires a fresh auth; `selectOrganization(id)` starts a
126
126
  distinct silent organization grant and exposes the selected ID on
127
- `AtolSession.organizationId`; `signDPoPProof(method, url)` signs a
127
+ `AtolSession.organizationId`; `restartLogin()` explicitly settles the exact
128
+ response-vault authorization that made signed-out initialization fail, then
129
+ starts one fresh login; `canRestartLogin()` reports whether this runtime holds
130
+ the hidden exact authority required for that operation;
131
+ `signDPoPProof(method, url)` signs a
128
132
  standalone RFC 9449 proof for a request to your own protected resource;
129
133
  `isDPoPActive()` reports whether DPoP is actually in effect (it can be
130
134
  `false` even when `dpop: true` was requested, if WebCrypto is unavailable);
@@ -255,7 +259,8 @@ This is a security library first. Key properties:
255
259
  `BroadcastChannel` remain signed out even if the IdP session cookie still
256
260
  exists. Failed attempts retain exact in-memory revocation and ID-token-hint
257
261
  custody for a same-runtime retry. Only an explicit `beginLogin()` clears
258
- the tombstone under a fresh generation.
262
+ the tombstone under a fresh generation; successful `restartLogin()` does so
263
+ only after the abandoned authorization has been settled.
259
264
  - **Exact abandoned-login cancellation.** In response-vault mode,
260
265
  `cancelLogin()` is available only before client initialization on a
261
266
  signed-out browser. It claims and rejects the exact pending interactive
@@ -275,6 +280,21 @@ This is a security library first. Key properties:
275
280
  requests are unavailable until logout finishes. Destroy cleanup is re-armed
276
281
  only after a later explicit login successfully establishes new interactive
277
282
  custody. Unsupported modes and initialized clients reject.
283
+ - **Explicit closed-tab restart.** If `init()` rejects while a signed-out
284
+ replacement tab finds response-vault custody abandoned by a closed tab,
285
+ ordinary `cancelLogin()` remains same-tab scoped and returns a busy error
286
+ without sending rejection. `restartLogin()` first persists and rechecks a
287
+ new origin-wide signed-out generation owned by that restart only while the
288
+ captured generation is still current, clears local
289
+ session state, and then fences only the failure-time reference, binding,
290
+ mode, full old generation, and active slot. A fresh authorization starts
291
+ exactly once and only after `/reject` returns an empty 204 or an authenticated
292
+ terminal-only probe returns 410. Ambiguous responses, authenticated 409,
293
+ local cleanup failure, or a concurrently superseded logout generation retain
294
+ the initialization failure for an exact retry and start no new PAR.
295
+ `canRestartLogin()` is the read-only UI capability check; generic startup,
296
+ callback, logout, successful initialization, and destroyed states return
297
+ `false` and are never promoted into restart authority.
278
298
 
279
299
  Found a vulnerability? See [SECURITY.md](./SECURITY.md) for how to report
280
300
  it privately.