View Source Changelog

v0.2.10 (2024-04-11)

Requires Elixir 1.13+

  • Fixed bug with trailing slash in :base_url not being ommitted when concatenating with relative path

v0.2.9 (2023-11-22)

  • Fixed bug where Req was not used by default if included in project
  • Assent.Strategy.Httpc.request/5 now sets content length header

v0.2.8 (2023-11-19)

Req will be used by default if available in your project, otherwise :httpc will be used.

  • Req HTTP adapter added
  • Req supported by default as HTTP client
  • Global application config support for HTTP and JWT adapters
  • More expressive errors now including the whole HTTP response where applicable
  • Deprecated :site config in favor of :base_url config

v0.2.7 (2023-09-12)

v0.2.6 (2023-08-26)

v0.2.5 (2023-08-21)

v0.2.4 (2023-08-20)

  • Fixed bug in Assent.JWTAdapter.AssentJWT where verified? could be a {:error, term()} tuple rather than boolean
  • Improved message on private key file load error

v0.2.3 (2023-03-23)

  • Removed :castore version requirement
  • Assent.Strategy.Httpc.request/5 raises error when SSL certificate can't be validated

v0.2.2 (2023-02-27)

v0.2.1 (2022-09-15)

  • Default to using Jason instead of Poison for JSON parsing
  • Fixed Bitwise warning when running on Elixir 1.14

v0.2.0 (2022-03-01)

This release consists of breaking changes.

In previous Assent.Strategy.Slack strategy, the sub user id field consisted of {SUB}-{TEAM}. Slack has migrated to OpenID Connect, and the response has been conformed to OIDC. The sub will now only consists of the sub id, and not include team id. To succesfullly migrate to this release all slack identity records storing the sub user id field has to be updated.

If you wish to continue using the previous sub user id a custom OIDC strategy can be used instead:

defmodule Slack do
  use Assent.Strategy.OIDC.Base

  alias Assent.Strategy.Slack

  defdelegate default_config(config), to: Slack

  def normalize(config, user) do
    user = Map.put(user, "sub", "#{user["https://slack.com/user_id"]}-#{user["https://slack.com/team_id"]}")

    Slack.normalize(config, user)
  end
end

v0.1.28 (2021-09-30)

v0.1.27 (2021-08-21)

v0.1.26 (2021-05-27)

  • Assent.constant_time_compare/2 no longer outputs a deprecation warning for OTP 24

v0.1.25 (2021-04-09)

v0.1.24 (2021-03-22)

v0.1.23 (2021-03-01)

Updated to support OTP 24 and no longer support OTP < 22.1

v0.1.22 (2021-01-08)

v0.1.21 (2020-12-29)

v0.1.20 (2020-12-10)

v0.1.19 (2020-11-25)

  • Updated docs to detail :inets compilation
  • Assent.OAuth2.authorize_url/1 now returns the state, if defined, from authorization_params

v0.1.18 (2020-11-08)

  • Removed oauther dependency

v0.1.17 (2020-11-05)

  • Relax mint requirement

v0.1.16 (2020-10-21)

Warning: This release has breaking changes.

All get_user/2 functions has been renamed to fetch_user/2 as they return {:ok, res}/{:error, res} tuples.

  • Assent.OAuth.get/4 removed in favor of Assent.OAuth.request/6
  • Assent.OAuth2.get_access_token/3 renamed to Assent.OAuth2.grant_access_token/3
  • Assent.OAuth2.get/4 removed in favor of Assent.OAuth2.request/6

v0.1.15 (2020-10-18)

v0.1.14 (2020-10-11)

v0.1.13 (2020-07-14)

v0.1.12 (2020-05-24)

v0.1.11 (2020-05-16)

v0.1.10 (2020-04-23)

Now requires Mint 1.0.0 or higher.

v0.1.9 (2020-04-23)

Now requires Elixir 1.7 or higher.

v0.1.8 (2020-02-15)

v0.1.7 (2020-02-10)

  • Fix Assent.HTTPAdapter.Mint where :unknown responses where not handled correctly

v0.1.6 (2020-01-30)

v0.1.5 (2020-01-13)

v0.1.4 (2019-11-09)

v0.1.3 (2019-10-27)

  • Fixed bug in Assent.Strategy.Github where multiple emails for account resulted in the verified primary e-mail not being returned

v0.1.2 (2019-10-08)

v0.1.1 (2019-10-07)

  • Relax mint requirement
  • Fix bug in Assent.HTTPAdapter.Mint where HTTP/2 responses wasn't parsed correctly

v0.1.0 (2019-10-06)

  • Initial release