Skip to content

Commit

Permalink
fix(config/runtime): add issuer for guardian_config in :prod
Browse files Browse the repository at this point in the history
without this config, guardian redis completely breaks and it is
~~impossible~~ very difficult to trace where the issue came from

```
** (KeyError) key :wheres not found in: #Ecto.Changeset<action: nil,
changes: %{claims: %{"aud" => "" ...
```

the telltale issue here being the `"aud" => ""` rather than
`t0.aud == ^"EpochtalkServer" ` like you would see if debugging a working
instance
  • Loading branch information
unenglishable committed Aug 16, 2024
1 parent c1663ac commit 2ed4db3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ guardian_config =
case config_env() do
:prod ->
[
issuer: "EpochtalkServer",
secret_key:
get_env_or_raise_with_message.(
"GUARDIAN_SECRET_KEY",
Expand Down

0 comments on commit 2ed4db3

Please sign in to comment.