Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.62 KB

CHANGELOG.md

File metadata and controls

78 lines (52 loc) · 1.62 KB

Changelog

v3.0.0

  • 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.
  • Allow migrations mix task with custom table name.
  • Make jti and aud required fields, since they are primary keys.

Breaking changes

  • Guardian.DB.Token.SweeperServer becomes Guardian.DB.Sweeper
  • sweep_interval option is no longer supported. Specify interval directly instead.
  • Sweep intervals are now specified in milliseconds instead of minutes.

v2.0.2

  • Fix deps range to include Guardian 2

v0.8.0

  • Sweeper configuration now works in minutes
  • Update dependencies
  • Fix 1.4 warnings
  • Raise error when configuration is missing

v0.7.0

  • Add a schema prefix
  • Add an expired token sweeper process

v0.6.0

Breaking

  • Add support for ecto 2 rc

v0.5.0

  • Updated to support Guardian 0.10
  • Make Postgrex optional
  • Support database schema configuration
  • Improve scope token lookup

v0.4.0

  • 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

v0.3.0

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

V0.1.0

Initial release