@passflow/core 0.39.4 → 0.41.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 +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -8
- package/dist/index.d.ts +60 -8
- package/dist/index.mjs +722 -698
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
## Changelog
|
|
4
4
|
|
|
5
|
+
### Version 0.41.0
|
|
6
|
+
|
|
7
|
+
- Added: `logOut({ postLogoutRedirectUri })` also sends the address as `post_logout_redirect_uri`
|
|
8
|
+
in the `POST /user/logout` body; without the option the body is unchanged. When the answer
|
|
9
|
+
carries `saml_logout_url`, the server sends the browser back there after the identity provider's
|
|
10
|
+
single logout instead of Passflow's signed-out page. The server checks it as `/oidc/end_session`
|
|
11
|
+
does and ignores an address that is not a registered redirect URL. Its use for the hosted
|
|
12
|
+
`/oidc/end_session` visit is unchanged. Needs Passflow server v0.137.1 or later; older servers
|
|
13
|
+
ignore it.
|
|
14
|
+
|
|
15
|
+
### Version 0.40.0
|
|
16
|
+
|
|
17
|
+
- Added: `login_hint` on `PassflowFederatedAuthPayload`, the email the user typed. The federated
|
|
18
|
+
start sends it, in the GET query or the POST body, for a `conn_<connection_id>` provider only;
|
|
19
|
+
PKCE and the landing are unchanged. It needs Passflow server v0.136.9 or later; an older server
|
|
20
|
+
ignores it.
|
|
21
|
+
- Added: `logOut()` resolves with `{ samlLogoutUrl }` when the logout answer carries
|
|
22
|
+
`saml_logout_url` (a SAML connection with SP-initiated logout), after the local session is
|
|
23
|
+
cleared; `{}` otherwise. `logOut({ followSamlLogout: true })` also navigates there. Without the
|
|
24
|
+
option nothing new navigates. `PassflowLogoutResponse.saml_logout_url` and `LogOutResult` are
|
|
25
|
+
new types. See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
|
|
26
|
+
|
|
5
27
|
### Version 0.39.4
|
|
6
28
|
|
|
7
29
|
- Changed: a sign-in that lands with `#tfa_token=` also removes `user_state` from the address bar,
|
|
8
30
|
as the token and federated landings do. Nothing reads it after that landing: `verifyTwoFactor`
|
|
9
|
-
uses the adopted token.
|
|
31
|
+
uses the adopted token. The landing now re-serialises the query through `URLSearchParams`, as the
|
|
32
|
+
other landings do: a bare `flag` becomes `flag=`, and `%20` becomes `+`.
|
|
10
33
|
|
|
11
34
|
### Version 0.39.3
|
|
12
35
|
|
|
@@ -477,6 +500,12 @@ not run then. A sign-in made in the app itself never navigates.
|
|
|
477
500
|
await passflow.logOut({ postLogoutRedirectUri: "https://app.example.com/signed-out" });
|
|
478
501
|
```
|
|
479
502
|
|
|
503
|
+
A session from a SAML connection can also end at the identity provider: `logOut()` resolves with
|
|
504
|
+
`{ samlLogoutUrl }` when the server returns one, and `logOut({ followSamlLogout: true })` goes there.
|
|
505
|
+
With `postLogoutRedirectUri` set, the logout request carries it too, and the identity provider's
|
|
506
|
+
logout then returns the browser there instead of Passflow's signed-out page (Passflow server
|
|
507
|
+
v0.137.1 or later; older servers ignore it). See [docs/enterprise-sso.md](docs/enterprise-sso.md#single-logout-saml).
|
|
508
|
+
|
|
480
509
|
### Quick Passwordless Authentication
|
|
481
510
|
|
|
482
511
|
```javascript
|