Skip to content

Conversation

@piptouque
Copy link

Purpose

Closes #624

Proposal

Changes :

  • Cache the credentials file based on when it was last modified.
  • Also cache the users' decrypted data based on that information.
  • Add some unit testing of Basic Auth user add/delete

Changes:
- Cache the credentials file based on when it was last modified.
- Also cache the users' decrypted data based on that information.

Rationale:
Right now, modifying the basic auth
credentials file (adding a user, for instance)
requires a server restart.
This is because of caching at the credentials file level.
Following the dicussion on [a previous PR]
(openfun#337 (comment))
we propose to  add the last modified time
of the credentials file to
the cache key for the credentials file and the users' data both.
If caching of the credentials file seems unnecessary
(as was discussed in the above PR),
it may be removed without breaking this feature.
@piptouque piptouque force-pushed the feat_basic_auth_mod_reload branch from 9cc0d26 to c9079e7 Compare January 16, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow modification of Basic Auth credentials without a reload

1 participant