aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-07Add asynchronous directory size countingSven-Hendrik Haase1-2/+5
This is enabled by default and without an option to toggle it off as it's asynchronous and shouldn't block the server thread.
2025-03-07Upgrade to Rust 2024 editionSven-Hendrik Haase1-1/+1
2024-01-29Refactor errorscyqsimon1-2/+2
- Split `ContexualError` into `StartError` & `RuntimeError` - Made sure every `RuntimeError` variant has an accurate status code
2022-12-19Fix lintsSven-Hendrik Haase1-3/+3
2022-09-20Tidy up some importsSven-Hendrik Haase1-2/+1
2022-07-22Update actix-web-httpauth to v0.8Sven-Hendrik Haase1-1/+1
2022-07-19Bump depsSven-Hendrik Haase1-4/+6
2022-05-23Fix new clippy lintsSven-Hendrik Haase1-2/+2
2021-10-13revert unnecessary changesAli MJ Al-Nasrawy1-46/+18
2021-09-02cargo fmt & cargo clippyjikstra1-2/+2
2021-09-02Fix rebasejikstra1-2/+2
2021-09-01Implement a raw rendering mode for recursive folder downloadjikstra1-6/+14
- Raw mode only displays file/folders and is more focused on computer processing - Display a banner in footer to recursively download the current folder with wget
2021-08-30Fix clippy::too_many_arguments and rework error ..Ali MJ Al-Nasrawy1-68/+18
... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com>
2021-08-28migrate to actix-web v4.0-betaAli MJ Al-Nasrawy1-23/+51
2021-02-28Add program version footerTamas Levai1-0/+1
2021-02-19Fix lintsSven-Hendrik Haase1-2/+2
2020-10-01restore default theme cli option and add default theme dark optionLukas Stabe1-0/+2
2020-09-26move css out of html into its own routeLukas Stabe1-0/+1
2020-09-25[wip] client-side color-scheme handlingLukas Stabe1-2/+0
2020-09-24Add embedded favicon (fixes #364)Sven-Hendrik Haase1-0/+1
2020-07-21Use actix-web-httpauth for authentication middlewareequal-l21-121/+30
2020-07-21Update to actix 2 and futures 0.3equal-l21-25/+80
2020-06-26Update sha2 to 0.9Sven-Hendrik Haase1-2/+2
2020-03-09Fix deprecated stuffSven-Hendrik Haase1-5/+5
2019-09-21Actually make use of pretty_assertionsSven-Hendrik Haase1-20/+12
2019-05-30Apply WWW_AUTHENTICATE to all Unauthorized brancheskhai96_1-11/+0
2019-05-24Improve doc commentkhai96_1-1/+1
2019-05-18Add unit test for multiple accountskhai96_1-1/+74
2019-05-17Fix Clippykhai96_1-5/+5
2019-05-16Update unit testskhai96_1-18/+17
2019-05-16Make some changeskhai96_1-41/+55
2019-05-05Begin to support multiple authskhai96_1-22/+22
2019-05-03Return QueryParameters struct instead of tupleboastful-squirrel1-1/+1
2019-05-02Read query params to handle error back linkboastful-squirrel1-0/+1
2019-05-02Cargo fmtboastful-squirrel1-4/+8
2019-05-02Added rustfmt_skip directive on testsboastful-squirrel1-6/+2
2019-05-01Return to root when auth succeedsboastful-squirrel1-1/+1
2019-05-01Use HTTP StatusCode for error titleboastful-squirrel1-2/+6
2019-05-01Fix return link when random_route is setboastful-squirrel1-1/+6
2019-05-01Added docboastful-squirrel1-0/+3
2019-05-01Display HTTP authentication errorsboastful-squirrel1-5/+38
2019-05-01Fix some Clippy lintskhai96_1-3/+2
2019-05-01Ignore clippy warningskhai96_1-0/+1
2019-04-27Fixed test + fixed clippy warningboastful-squirrel1-2/+2
2019-04-27Combine ContextualError and ContextualErrorKind into onekhai96_1-7/+5
2019-04-26Cargo fmtboastful-squirrel1-2/+7
2019-04-26Comply to change requestskhai96_1-1/+7
- Added doc comments - Added an additional test case
2019-04-25Use rstest_parametrize for unit testskhai96_1-68/+44
2019-04-24Run cargo fmtkhai96_1-5/+11
2019-04-23Convert hex strings to raw byte vectors and compare themkhai96_1-14/+19