Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@danschultzer danschultzer released this 06 Jan 22:51
· 3 commits to main since this release

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 #178
  • Assent.Strategy.Basecamp.callback/2 now encodes sub as a binary() instead of an integer() #167
  • Assent.Strategy.Github.callback/2 now encodes sub as a binary() instead of an integer() #167
  • Assent.Strategy.Google now encodes email_verified as a boolean() instead of a binary() #167
  • Assent.Strategy.Google now return hd instead of google_hd #169
  • Assent.Strategy.Strava.callback/2 now encodes sub as a binary() instead of an integer() #167
  • Assent.Strategy.Telegram.callback/2 now encodes sub as a binary() instead of an integer() #167
  • Assent.Strategy.Twitter.callback/2 now encodes sub as a binary() instead of an integer() #167
  • Assent.Strategy.VK.callback/2 now encodes sub as a binary() instead of an integer() #167
  • :site configuration option removed, use :base_url instead #174
  • Assent.Strategy.OAuth2.authorize_url/2 no longer allows :state in :authorization_params #174
  • Assent.Strategy.decode_response/2removed, use Assent.HTTPAdapter.decode_response/2 instead #174
  • Assent.Strategy.request/5 removed, use Assent.Strategy.http_request/5 instead #174
  • Assent.Strategy.prune/1 removed #167
  • Assent.MissingParamError no longer accepts :expected_key, use :key instead #174
  • Assent.HTTPAdapter.Mint removed #174
  • Assent.Config removed #174

Changes

  • Assent.Strategy.Auth0 now uses OIDC instead of OAuth 2.0 base strategy #178
  • Assent.Strategy.Gitlab now uses OIDC instead of OAuth 2.0 base strategy #179
  • Assent.Strategy.Google now uses OIDC instead of OAuth 2.0 base strategy #169
  • Assent.Strategy.normalize_userinfo/2 now casts the user claims per OpenID specification #167