This release consists of breaking changes.
Userinfo is now cast to the correct type per https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.5.1 (thanks @robinvdvleuten). 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.
Breaking changes
Assent.Strategy.Auth0.authorize_url/2
no longer accepts:domain
config, use:base_url
instead #178Assent.Strategy.Basecamp.callback/2
now encodessub
as abinary()
instead of aninteger()
#167Assent.Strategy.Github.callback/2
now encodessub
as abinary()
instead of aninteger()
#167Assent.Strategy.Google
now encodesemail_verified
as aboolean()
instead of abinary()
#167Assent.Strategy.Google
now returnhd
instead ofgoogle_hd
#169Assent.Strategy.Strava.callback/2
now encodessub
as abinary()
instead of aninteger()
#167Assent.Strategy.Telegram.callback/2
now encodessub
as abinary()
instead of aninteger()
#167Assent.Strategy.Twitter.callback/2
now encodessub
as abinary()
instead of aninteger()
#167Assent.Strategy.VK.callback/2
now encodessub
as abinary()
instead of aninteger()
#167:site
configuration option removed, use:base_url
instead #174Assent.Strategy.OAuth2.authorize_url/2
no longer allows:state
in:authorization_params
#174Assent.Strategy.decode_response/2
removed, useAssent.HTTPAdapter.decode_response/2
instead #174Assent.Strategy.request/5
removed, useAssent.Strategy.http_request/5
instead #174Assent.Strategy.prune/1
removed #167Assent.MissingParamError
no longer accepts:expected_key
, use:key
instead #174Assent.HTTPAdapter.Mint
removed #174Assent.Config
removed #174
Changes
Assent.Strategy.Auth0
now uses OIDC instead of OAuth 2.0 base strategy #178Assent.Strategy.Gitlab
now uses OIDC instead of OAuth 2.0 base strategy #179Assent.Strategy.Google
now uses OIDC instead of OAuth 2.0 base strategy #169Assent.Strategy.normalize_userinfo/2
now casts the user claims per OpenID specification #167