v0.4.0
This release consists of major breaking changes.
You'll have to change the :strategy setting in your provider configurations. For the most part it would just consists of renaming PowAssent.Strategy.STRATEGY to Assent.Strategy.STRATEGY.
If you have custom built strategies, you should can use Assent.Strategy.normalize_userinfo/2 to conform the userinfo response from the API. sub is now expected instead of uid.
Changes
Ref: #95
-
Use
:assentpackage for strategies. The following modules has been removed in favor ofAssentmodules:PowAssent.CallbackErrorPowAssent.CallbackCSRFErrorPowAssent.RequestErrorPowAssent.ConfigurationErrorPowAssent.HTTPAdapterPowAssent.HTTPAdapter.HttpcPowAssent.HTTPAdapter.MintPowAssent.Strategy.Auth0PowAssent.Strategy.AzureOAuth2PowAssent.Strategy.BasecampPowAssent.Strategy.DiscordPowAssent.Strategy.FacebookPowAssent.Strategy.GithubPowAssent.Strategy.GitlabPowAssent.Strategy.GooglePowAssent.Strategy.InstagramPowAssent.Strategy.OAuthPowAssent.Strategy.OAuth.BasePowAssent.Strategy.OAuth2PowAssent.Strategy.OAuth2.BasePowAssent.Strategy.SlackPowAssent.Strategy.TwitterPowAssent.Strategy.VKPowAssent.Strategy
-
Callback params now conforms to OpenID Connect Core 1.0 Standard Claims spec. During the callback phase, the following param keys will be renamed:
subtouidpreferred_usernametousername
-
The e-mail is no longer considered confirmed unless the callback params has an
email_verifiedkey set to true -
PowAssent.Plug.authorize_url/3generates a random nonce ifnonce: trueis set in the provider configuration -
Support for OpenID Connect and Apple Sign In through Assent