@passflow/core 0.42.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 CHANGED
@@ -2,6 +2,20 @@
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
+
5
19
  ### Version 0.42.0
6
20
 
7
21
  - Added: `deviceKey: true` in the `Passflow` config binds sessions to this browser. The SDK keeps a
@@ -517,7 +531,9 @@ await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-o
517
531
 
518
532
  A session from a SAML connection can also end at the identity provider: `logOut()` resolves with
519
533
  `{ samlLogoutUrl }` when the server returns one, and `logOut({ followSamlLogout: true })` goes there.
520
- With `postLogoutRedirectUri` set, the logout request carries it too, and the identity provider's
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
521
537
  logout then returns the browser there instead of Passflow's signed-out page (Passflow server
522
538
  v0.137.1 or later; older servers ignore it). See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
523
539