mirror of
https://github.com/octoleo/syncthing.git
synced 2024-06-02 17:10:53 +00:00
aa901790b9
This adds a "token manager" which handles storing and checking expired tokens, used for both sessions and CSRF tokens. It removes the old, corresponding functionality for CSRFs which saved things in a file. The result is less crap in the state directory, and active login sessions now survive a Syncthing restart (this really annoyed me). It also adds a boolean on login to create a longer-lived session cookie, which is now possible and useful. Thus we can remain logged in over browser restarts, which was also annoying... :) <img width="1001" alt="Screenshot 2023-12-12 at 09 56 34" src="https://github.com/syncthing/syncthing/assets/125426/55cb20c8-78fc-453e-825d-655b94c8623b"> Best viewed with whitespace-insensitive diff, as a bunch of the auth functions became methods instead of closures which changed indentation. |
||
---|---|---|
.. | ||
aboutModalView.html | ||
alwaysNumberFilter.js | ||
basenameFilter.js | ||
binaryFilter.js | ||
connectivityStatusModalView.html | ||
durationFilter.js | ||
editShareTemplate.html | ||
eventService.js | ||
httpErrorDialogView.html | ||
identiconDirective.js | ||
languageSelectDirective.js | ||
localeNumberFilter.js | ||
localeService.js | ||
logViewerModalView.html | ||
majorUpgradeModalView.html | ||
metricFilter.js | ||
modalDirective.js | ||
module.js | ||
networkErrorDialogView.html | ||
notificationDirective.js | ||
notifications.html | ||
pathIsSubDirDirective.js | ||
percentFilter.js | ||
popoverDirective.js | ||
restartingDialogView.html | ||
savingChangesDialogView.html | ||
shutdownDialogView.html | ||
syncthingController.js | ||
tooltipDirective.js | ||
uncamelFilter.js | ||
uniqueFolderDirective.js | ||
upgradeModalView.html | ||
upgradingDialogView.html | ||
validDeviceidDirective.js |