@passflow/core 0.41.0 → 0.42.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 +32 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +170 -19
- package/dist/index.d.ts +170 -19
- package/dist/index.mjs +1391 -1104
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.42.1
|
|
6
|
+
|
|
7
|
+
- Fixed: after a hosted sign-in through a SAML connection with SP-initiated logout,
|
|
8
|
+
`logOut({ followSamlLogout: true })` now goes to the identity provider's logout address instead
|
|
9
|
+
of `/oidc/end_session`, so the identity provider ends its session too. Before, `POST /user/logout`
|
|
10
|
+
had already ended the session, so `/oidc/end_session` sent no LogoutRequest and the identity
|
|
11
|
+
provider's session stayed alive. Without the option, or when the answer has no
|
|
12
|
+
`saml_logout_url`, a hosted sign-in still goes to `/oidc/end_session`.
|
|
13
|
+
- Fixed: after a hosted sign-in the `POST /user/logout` body carries `post_logout_redirect_uri`
|
|
14
|
+
even without the option: `postLogoutRedirectUri`, else the address the hosted sign-in landed on.
|
|
15
|
+
It is the same address the `/oidc/end_session` visit uses, so the identity provider's logout
|
|
16
|
+
returns the browser to the app instead of Passflow's signed-out page. A sign-in made in the app
|
|
17
|
+
itself sends the same body as before.
|
|
18
|
+
|
|
19
|
+
### Version 0.42.0
|
|
20
|
+
|
|
21
|
+
- Added: `deviceKey: true` in the `Passflow` config binds sessions to this browser. The SDK keeps a
|
|
22
|
+
non-extractable ES256 key in IndexedDB (declared `software`), enrols it with
|
|
23
|
+
`POST /user/device/key` after a sign-in that completed a second factor (or when the app calls
|
|
24
|
+
`enrolDeviceKey()` after a step-up), and then sends `X-Passflow-Device-Proof` on password and
|
|
25
|
+
passkey sign-in and on every `/auth/refresh` attempt, with a counter that only rises. With the
|
|
26
|
+
option, `/auth/refresh` also goes with credentials, so a browser that registered DBSC sends its
|
|
27
|
+
cookie. Any `error.device.*` answer at refresh (for example `error.device.key.reused`) deletes the
|
|
28
|
+
key and tokens and ends the session: `SessionExpired` plus one `Error` carrying the id (after a
|
|
29
|
+
step-up commit, at the next refresh). Token
|
|
30
|
+
answers carry `refresh_challenge`. Off by default, and ignored in BFF mode; without it the SDK
|
|
31
|
+
sends exactly what it sent before. Needs Passflow server v0.137.0 or later. See
|
|
32
|
+
[docs/device-key.md](docs/device-key.md).
|
|
33
|
+
|
|
5
34
|
### Version 0.41.0
|
|
6
35
|
|
|
7
36
|
- Added: `logOut({ postLogoutRedirectUri })` also sends the address as `post_logout_redirect_uri`
|
|
@@ -502,7 +531,9 @@ await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-o
|
|
|
502
531
|
|
|
503
532
|
A session from a SAML connection can also end at the identity provider: `logOut()` resolves with
|
|
504
533
|
`{ samlLogoutUrl }` when the server returns one, and `logOut({ followSamlLogout: true })` goes there.
|
|
505
|
-
|
|
534
|
+
After a hosted sign-in it goes there instead of `/oidc/end_session`, so the identity provider ends
|
|
535
|
+
its session too. The logout request carries `postLogoutRedirectUri` when set; after a hosted
|
|
536
|
+
sign-in it carries the address the hosted sign-in landed on by default. The identity provider's
|
|
506
537
|
logout then returns the browser there instead of Passflow's signed-out page (Passflow server
|
|
507
538
|
v0.137.1 or later; older servers ignore it). See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
|
|
508
539
|
|