Repository navigation
Now requires Elixir 1.18 / OTP 26. #210
Breaking changes
Assent.HTTPAdapter.Finchremoved #198JSONis now the default JSON library #210Assent.Strategy.Instagramremoved because the Instagram Basic Display API has been discontinued #216- Exceptions and
Assent.HTTPAdapter.HTTPResponsenow omit potentially sensitive fields from their defaultInspectoutput #217 Assent.Strategy.OIDCnow requires:userinfo_signed_response_algfor signed UserInfo responses #217- The following exceptions have been renamed: #217
Assent.CallbackErrortoAssent.Strategy.CallbackError, now with:paramsfield instead of:errorand:error_uriAssent.CallbackCSRFErrortoAssent.Strategy.CallbackCSRFErrorAssent.CastClaimsErrortoAssent.Strategy.CastErrorAssent.RequestErrortoAssent.HTTPAdapter.RequestErrorAssent.InvalidResponseErrortoAssent.HTTPAdapter.InvalidResponseErrorAssent.UnexpectedResponseErrortoAssent.HTTPAdapter.UnexpectedResponseErrorAssent.ServerUnreachableErrortoAssent.HTTPAdapter.ServerUnreachableError
- Strategies now return exceptions instead of error strings:
Assent.MissingParamErrorfor missing parameters andArgumentErrorfor configuration errors #217 Assent.Strategy.OAuth2now returnsAssent.Strategy.OAuth2.UnsupportedTokenTypeErrorfor unsupported token types #217Assent.Strategy.OIDCnow returns: #217Assent.Strategy.OIDC.InvalidOpenIDConfigurationErrorfor invalid provider configurationAssent.Strategy.OIDC.InvalidIDTokenErrorfor invalid ID TokensAssent.Strategy.OIDC.InvalidUserInfoErrorfor invalid UserInfo responses
Assent.Strategy.Telegramnow returnsArgumentErrorfor an invalid:authorization_channel#217Assent.HTTPAdapter.HTTPResponsereplaces its:request_urlfield with a:requestfield containing anAssent.HTTPAdapter.HTTPRequeststruct #217Assent.JWTAdapter.AssentJWT.Errorreplaces its:messagefield with structured:action,:part, and:reasonfields #217Assent.HTTPAdapter.Httpcnow verifies SSL certificates with the OS trust store and OTP's built-in hostname verification,:certifiand:ssl_verify_funare no longer used #219 (thanks @richard-ash)Assent.HTTPAdapter.Httpcnow raisesArgumentErroron HTTPS requests configured withverify: :verify_none#219 (thanks @richard-ash)Assent.HTTPAdapter.HttpcandAssent.HTTPAdapter.Reqno longer follow redirects by default #222 (thanks @richard-ash)
Changes
:inetsand:sslare now started automatically byAssent, and no longer required in:extra_applications#218 #198 (thanks @richard-ash)Assent.JWTAdapter.AssentJWTnow supports EdDSA algorithms #200 (thanks @krallowski)Assent.JWTAdapter.AssentJWTnow supports EC JWKs #200Assent.Strategy.OIDCno longer rejects a:client_authentication_methodmissing from the provider'stoken_endpoint_auth_methods_supported#184 (thanks @m0rt3nlund)Assent.Strategy.OIDCaccepts additional ID Token issuers via the:trusted_issuersconfig option #203 (thanks @tgodniak)Assent.Strategy.OIDCnow validatesissandaudfor signed UserInfo responses #217Assent.Strategy.Facebooknow requests the userpicturefield #204 (thanks @simonxuhao)- Strategies now accept a
:prepare_http_requestconfiguration option for rewriting HTTP requests #206 (thanks @dragonhunt02) Assent.HTTPAdapter.request/5is deprecated in favor ofAssent.HTTPAdapter.request/2#206Assent.Strategy.Applenow returnsis_private_email,real_user_status, andorg_idin the user info #208Assent.Strategy.cast_claims/2was added to support casting provider-specific claims #208Assent.Strategy.OAuth2.grant_access_token/3accepts:jwt_audiencefor JWT client authentication #215Assent.Strategy.OAuth2deprecates the:auth_methodconfiguration option in favor of:client_authentication_method#221Assent.Strategy.OIDCdeprecates string values for the:client_authentication_methodconfiguration option in favor of atoms #221 (thanks @richard-ash)
Bug fixes
Assent.Strategy.OAuthno longer lowercases the request path for signature base string, per RFC 5849 3.4.1.2 #201Assent.HTTPAdapter.Reqnow returns the response headers instead of the request headers #202Assent.Strategy.OIDCnow rejects dynamically fetched OpenID configuration when issuer does not match the issuer URL #209Assent.Strategy.OAuth2.callback/2now validates thestateparameter before handling error responses #211Assent.Strategy.OIDC.authorize_url/1now generates a random nonce when:nonceis set totrue#212Assent.Strategy.OAuth.authorize_url/1now validatesoauth_callback_confirmedin request token responses #213Assent.Strategy.OAuth.callback/2now validates theoauth_tokenparameter #213Assent.Strategy.Telegram.callback/2now verifieshashbefore verifyingauth_date#214Assent.Strategy.OAuth2.grant_access_token/3now encodesclient_secret_basiccredentials asx-www-form-urlencoded#215Assent.Strategy.OAuth2.grant_access_token/3now uses the token endpoint URL as the defaultaudfor JWT client authentication #215Assent.Strategy.OAuth2.grant_access_token/3now includes a uniquejtiin JWT client authentication #215Assent.Strategy.Facebooknow uses Graph API v26.0 #216Assent.Strategy.VKnow uses API v5.199 and only requests supported user fields #216Assent.Strategy.VKnow merges:user_url_paramswith the defaultfieldsandvrequest params instead of dropping them #220 (thanks @richard-ash)Assent.Strategy.Discordnow uses the API v10 endpoints #216Assent.Strategy.BitbucketandAssent.Strategy.Spotifynow useclient_secret_basicauthentication #216Assent.Strategy.LINEnow usesclient_secret_postauthentication #216Assent.Strategy.Appleno longer allows unverifiedusercallback parameters to override identity claims #207