@passflow/core 0.39.3 → 0.40.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 CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ ### Version 0.40.0
6
+
7
+ - Added: `login_hint` on `PassflowFederatedAuthPayload`, the email the user typed. The federated
8
+ start sends it, in the GET query or the POST body, for a `conn_<connection_id>` provider only;
9
+ PKCE and the landing are unchanged. It needs Passflow server v0.136.9 or later; an older server
10
+ ignores it.
11
+ - Added: `logOut()` resolves with `{ samlLogoutUrl }` when the logout answer carries
12
+ `saml_logout_url` (a SAML connection with SP-initiated logout), after the local session is
13
+ cleared; `{}` otherwise. `logOut({ followSamlLogout: true })` also navigates there. Without the
14
+ option nothing new navigates. `PassflowLogoutResponse.saml_logout_url` and `LogOutResult` are
15
+ new types. See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
16
+
17
+ ### Version 0.39.4
18
+
19
+ - Changed: a sign-in that lands with `#tfa_token=` also removes `user_state` from the address bar,
20
+ as the token and federated landings do. Nothing reads it after that landing: `verifyTwoFactor`
21
+ uses the adopted token. The landing now re-serialises the query through `URLSearchParams`, as the
22
+ other landings do: a bare `flag` becomes `flag=`, and `%20` becomes `+`.
23
+
5
24
  ### Version 0.39.3
6
25
 
7
26
  - Changed: a sign-in that lands with tokens in the URL also removes `user_state` from the address
@@ -471,6 +490,10 @@ not run then. A sign-in made in the app itself never navigates.
471
490
  await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-out" });
472
491
  ```
473
492
 
493
+ A session from a SAML connection can also end at the identity provider: `logOut()` resolves with
494
+ `{ samlLogoutUrl }` when the server returns one, and `logOut({ followSamlLogout: true })` goes there.
495
+ See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
496
+
474
497
  ### Quick Passwordless Authentication
475
498
 
476
499
  ```javascript