@passflow/core 0.39.4 → 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 +18 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -6
- package/dist/index.d.ts +49 -6
- package/dist/index.mjs +712 -689
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,24 @@
|
|
|
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
|
+
|
|
5
17
|
### Version 0.39.4
|
|
6
18
|
|
|
7
19
|
- Changed: a sign-in that lands with `#tfa_token=` also removes `user_state` from the address bar,
|
|
8
20
|
as the token and federated landings do. Nothing reads it after that landing: `verifyTwoFactor`
|
|
9
|
-
uses the adopted token.
|
|
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 `+`.
|
|
10
23
|
|
|
11
24
|
### Version 0.39.3
|
|
12
25
|
|
|
@@ -477,6 +490,10 @@ not run then. A sign-in made in the app itself never navigates.
|
|
|
477
490
|
await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-out" });
|
|
478
491
|
```
|
|
479
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
|
+
|
|
480
497
|
### Quick Passwordless Authentication
|
|
481
498
|
|
|
482
499
|
```javascript
|