Releases: pow-auth/assent
Releases · pow-auth/assent
v0.2.0
This release consists of breaking changes.
In previous Assent.Stategy.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
Assent.Strategy.OIDC.fetch_user/2
now removes the ID token specific keys from the user claims instead of normalizing #100Assent.Strategy.OIDC.Base
now addsnormalize/2
to the macro that will include the full user claims in the user params #100Assent.Stategy.Slack
now uses OpenID connect instead of legacy OAuth 2.0, please note that thesub
value may have changed #97
v0.1.28
v0.1.27
v0.1.26
v0.1.25
v0.1.24
v0.1.23
v0.1.22
v0.1.21
v0.1.20
Changes
Assent.Strategy.Stripe
added #70Assent.Strategy.to_url/3
now handles nested query params #70Assent.Strategy.OAuth2
no longer removes padding for base64 encoding authorization header #71Assent.Strategy.OIDC.validate_id_token/2
now supports dynamic OpenID configuration #73Assent.Strategy.OIDC.fetch_userinfo/2
now supports dynamic OpenID configuration #73