- Introduced
Guardian.DB.Adapter
behaviour to allow for custom database adapters to be used with Guardian DB.- Add
config :guardian, Guardian.DB, adapter: Guardian.DB.EctoAdapter
to fall back to the default Ecto adapter. - Added
Guardian.DB.ETSAdapter
. - Added
Guardian.DB.EctoAdapter
.
- Add
- Allow migrations mix task with custom table name.
- Make
jti
andaud
required fields, since they are primary keys.
Guardian.DB.Token.SweeperServer
becomesGuardian.DB.Sweeper
sweep_interval
option is no longer supported. Specify interval directly instead.- Sweep intervals are now specified in milliseconds instead of minutes.
- Fix deps range to include Guardian 2
- Sweeper configuration now works in minutes
- Update dependencies
- Fix 1.4 warnings
- Raise error when configuration is missing
- Add a schema prefix
- Add an expired token sweeper process
- Add support for ecto 2 rc
- Updated to support Guardian 0.10
- Make Postgrex optional
- Support database schema configuration
- Improve scope token lookup
- Update deps to use higher level of postgrex
- Add the typ field
When migrating form 0.3.0 to 0.4.0 you'll need to run a migration to add the typ field.
alter table(:guardian_tokens) do
add :typ, :string
end
Update the schema to use a map for claims.
To update you'll need to change your schema.
mix ecto.gen.migration update_guardian_db_tokens
alter table(:guardian_tokens) do
remove :claims
add :claims, :map
end
Initial release