Skip to content

Commit

Permalink
Prevent jwks_expired flood in worker #359
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Jul 26, 2024
1 parent 3b0b522 commit babd4a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/oidcc_provider_configuration_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,14 @@ handle_continue(
#state{
issuer = Issuer,
provider_configuration_opts = ProviderConfigurationOpts,
configuration_refresh_timer = OldTimer,
configuration_refresh_timer = OldConfigurationRefreshTimer,
jwks_refresh_timer = OldJwksRefreshTimer,
ets_table = EtsTable
} =
State
) ->
maybe_cancel_timer(OldTimer),
maybe_cancel_timer(OldConfigurationRefreshTimer),
maybe_cancel_timer(OldJwksRefreshTimer),

maybe
{ok, {Configuration, Expiry}} ?=
Expand Down

0 comments on commit babd4a9

Please sign in to comment.