You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,24 @@
4
4
5
5
**This release consists of breaking changes.**
6
6
7
+
Userinfo is now cast to the correct type per https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.5.1. When upgrading you must ensure that you do not depend on a specific type in the returned userinfo for any of the strategies listed below.
8
+
7
9
### Breaking changes
8
10
9
11
*`Assent.Strategy.Auth0.authorize_url/2` no longer accepts `:domain` config, use `:base_url` instead
12
+
*`Assent.Strategy.Basecamp.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
13
+
*`Assent.Strategy.Github.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
14
+
*`Assent.Strategy.Google` now encodes `email_verified` as a `boolean()` instead of a `binary()`
10
15
*`Assent.Strategy.Google` now return `hd` instead of `google_hd`
16
+
*`Assent.Strategy.Strava.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
17
+
*`Assent.Strategy.Telegram.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
18
+
*`Assent.Strategy.Twitter.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
19
+
*`Assent.Strategy.VK.callback/2` now encodes `sub` as a `binary()` instead of an `integer()`
11
20
*`:site` configuration option removed, use `:base_url` instead
12
21
*`Assent.Strategy.OAuth2.authorize_url/2` no longer allows `:state` in `:authorization_params`
13
22
*`Assent.Strategy.decode_response/2`removed, use `Assent.HTTPAdapter.decode_response/2` instead
14
23
*`Assent.Strategy.request/5` removed, use `Assent.Strategy.http_request/5` instead
24
+
*`Assent.Strategy.prune/1` removed
15
25
*`Assent.MissingParamError` no longer accepts `:expected_key`, use `:key` instead
16
26
*`Assent.HTTPAdapter.Mint` removed
17
27
*`Assent.Config` removed
@@ -21,6 +31,7 @@
21
31
*`Assent.Strategy.Auth0` now uses OIDC instead of OAuth 2.0 base strategy
22
32
*`Assent.Strategy.Gitlab` now uses OIDC instead of OAuth 2.0 base strategy
23
33
*`Assent.Strategy.Google` now uses OIDC instead of OAuth 2.0 base strategy
34
+
*`Assent.Strategy.normalize_userinfo/2` now casts the user claims per OpenID specification
0 commit comments