@passflow/core 0.40.0 → 0.42.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 +28 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +163 -9
- package/dist/index.d.ts +163 -9
- package/dist/index.mjs +1402 -1114
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.42.0
|
|
6
|
+
|
|
7
|
+
- Added: `deviceKey: true` in the `Passflow` config binds sessions to this browser. The SDK keeps a
|
|
8
|
+
non-extractable ES256 key in IndexedDB (declared `software`), enrols it with
|
|
9
|
+
`POST /user/device/key` after a sign-in that completed a second factor (or when the app calls
|
|
10
|
+
`enrolDeviceKey()` after a step-up), and then sends `X-Passflow-Device-Proof` on password and
|
|
11
|
+
passkey sign-in and on every `/auth/refresh` attempt, with a counter that only rises. With the
|
|
12
|
+
option, `/auth/refresh` also goes with credentials, so a browser that registered DBSC sends its
|
|
13
|
+
cookie. Any `error.device.*` answer at refresh (for example `error.device.key.reused`) deletes the
|
|
14
|
+
key and tokens and ends the session: `SessionExpired` plus one `Error` carrying the id (after a
|
|
15
|
+
step-up commit, at the next refresh). Token
|
|
16
|
+
answers carry `refresh_challenge`. Off by default, and ignored in BFF mode; without it the SDK
|
|
17
|
+
sends exactly what it sent before. Needs Passflow server v0.137.0 or later. See
|
|
18
|
+
[docs/device-key.md](docs/device-key.md).
|
|
19
|
+
|
|
20
|
+
### Version 0.41.0
|
|
21
|
+
|
|
22
|
+
- Added: `logOut({ postLogoutRedirectUri })` also sends the address as `post_logout_redirect_uri`
|
|
23
|
+
in the `POST /user/logout` body; without the option the body is unchanged. When the answer
|
|
24
|
+
carries `saml_logout_url`, the server sends the browser back there after the identity provider's
|
|
25
|
+
single logout instead of Passflow's signed-out page. The server checks it as `/oidc/end_session`
|
|
26
|
+
does and ignores an address that is not a registered redirect URL. Its use for the hosted
|
|
27
|
+
`/oidc/end_session` visit is unchanged. Needs Passflow server v0.137.1 or later; older servers
|
|
28
|
+
ignore it.
|
|
29
|
+
|
|
5
30
|
### Version 0.40.0
|
|
6
31
|
|
|
7
32
|
- Added: `login_hint` on `PassflowFederatedAuthPayload`, the email the user typed. The federated
|
|
@@ -492,7 +517,9 @@ await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-o
|
|
|
492
517
|
|
|
493
518
|
A session from a SAML connection can also end at the identity provider: `logOut()` resolves with
|
|
494
519
|
`{ samlLogoutUrl }` when the server returns one, and `logOut({ followSamlLogout: true })` goes there.
|
|
495
|
-
|
|
520
|
+
With `postLogoutRedirectUri` set, the logout request carries it too, and the identity provider's
|
|
521
|
+
logout then returns the browser there instead of Passflow's signed-out page (Passflow server
|
|
522
|
+
v0.137.1 or later; older servers ignore it). See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
|
|
496
523
|
|
|
497
524
|
### Quick Passwordless Authentication
|
|
498
525
|
|