Requires Elixir 1.12+.
- Permit native application redirect uri
- Separate Ecto migration and field options to resolve ecto 3.8 deprecation
- Permit associations to be overridden
- Updated the documentation for how to set application resource owner
- Fixed bug where
Mix.env
is called on runtime rather than compile time
- Improved error message for missing repo configuration
- A server issue at hex.pm caused v0.5.3 to not be released correctly. Use v0.5.4 instead.
- Fixed bug in
ExOauth2Provider.RedirectURI.valid_for_authorization?/3
where the:redirect_uri_match_fun
configuration option was not used - Deprecated
ExOauth2Provider.RedirectURI.matches?/2
- Added
:redirect_uri_match_fun
configuration option for custom matching of redirect uri
- Relaxed plug requirement up to 2.0.0
- Fix bug where otp app name could not be fetched in release
This is a full rewrite of the library, and are several breaking changes. You're encouraged to test your app well if you upgrade from 0.4.
Schema modules are now generated when installing ExOauth2Provider. To upgrade please run mix ex_oauth2_provider.install --no-migrations
to generate the schema files.
In the MyApp.OauthAccessGrants.OauthAccessGrant
schema module you should update the timestamp/0
macro to ignore :updated_at
:
schema "oauth_access_grants" do
access_grant_fields()
timestamps(updated_at: false)
end
Config now has the form config :my_app, ExOauth2Provider
. You can still use the previous config :ex_oauth2_provider, ExOauth2Provider
configuration, but you are encouraged to switch over to the app specific configuration.
If your configuration has :resource_owner
setting with a UUID, you should remove it and only use the module name for your user schema. UUID is now handled in the schema modules directly.
The schemas can be generated with mix ex_oauth2_provider.install --no-migrations --binary-id
.