Repository navigation
chore(deps): update dependency guardian_db to v3 #1326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,7 @@ defmodule Cadet.Mixfile do | |
| {:ex_machina, "~> 2.3"}, | ||
| {:ex_rated, "~> 2.0"}, | ||
| {:guardian, "~> 2.4"}, | ||
| {:guardian_db, "~> 2.1"}, | ||
| {:guardian_db, "~> 3.0"}, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixIn Prompt for AI Agent |
||
| {:hackney, "~> 1.25"}, | ||
| {:httpoison, "~> 2.3", override: true}, | ||
| {:jason, "~> 1.4"}, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The upgrade to
Guardian.DBv3 is incomplete. It's missing required configuration changes for the adapter and sweeper, which will cause authentication flows to fail at runtime.Severity: CRITICAL
Suggested Fix
In
config/config.exs, addadapter: Guardian.DB.EctoAdapterto the:guardian, Guardian.DBconfiguration. Inlib/cadet/application.ex, update the worker fromGuardian.DB.Token.SweeperServertoGuardian.DB.Sweeper. Also, remove the now-obsoletesweep_intervalconfiguration key.Prompt for AI Agent