aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2019-04-22Improved errorsboastful-squirrel1-4/+6
2019-04-21Rework error system + avoid panics in main()boastful-squirrel1-12/+17
2019-04-20Remove spaces before function nameskhai96_1-3/+3
2019-04-19Fix parse_auth and add some testskhai96_1-3/+91
2019-04-19Fix false positivekhai96_1-1/+1
2019-04-19Create get_hash_hexkhai96_1-3/+6
2019-04-19Add support for sha-512khai96_1-7/+11
2019-04-19Add support for hashed password (sha256)khai96_1-3/+31
2019-04-13Fixed auth checkboasting-squirrel1-12/+7
2019-03-08Send 401 instead of 403 on incorrect password (fixes #47)Sven-Hendrik Haase1-1/+1
2019-02-13Added some docstringsboasting-squirrel1-0/+2
2019-02-13Removed config.rs and put back actix config in main.rsboasting-squirrel1-4/+2