Commit Graph

105 Commits

Author SHA1 Message Date
b6bfb2eae9 Revised the documentation of the DigestAuth class and the calc_response function. 2022-12-06 17:38:58 +08:00
e6b4594393 Added the Sphinx documentation. 2022-12-06 17:38:14 +08:00
495e9a9785 Advanced to version 0.2.1. 2022-12-06 07:59:44 +08:00
cbbd2248f0 Added the pytest test example to README.rst. 2022-12-06 07:54:49 +08:00
2028cb1362 Revised the User class in the AuthenticationTestCase and FlaskLoginTestCase test classes to accept the clear-text password instead of the password hash, to simplify the code. 2022-12-03 14:30:22 +08:00
7e71115844 Fixed the test_logout test of the FlaskLoginTestCase test case to skip without Flask-Login. 2022-12-03 11:56:40 +08:00
491da61a79 Fixed the AuthenticationTestCase and FlaskLoginTestCase test cases to store the user instead of finding the user through flask-login or g, so that the visit tests work without the application context. 2022-12-03 11:55:52 +08:00
bbaebbc80d Fixed the long lines in the AuthenticationTestCase and FlaskLoginTestCase test cases. 2022-11-30 23:35:04 +08:00
0dfdf70c45 Fixed a minor problem in the get_logged_in_user function. 2022-11-30 08:31:58 +08:00
0432561b21 Revised the minor problems in README.rst. 2022-11-30 08:31:26 +08:00
3709cb4d66 Fixed the return type hint of the get_logged_in_user function. 2022-11-30 08:30:42 +08:00
9d0d0b2686 Revised the login_required method of the DigestAuth class for readability. 2022-11-29 22:24:25 +08:00
8c98d35934 Revised the calc_response function for readability. 2022-11-29 22:10:18 +08:00
7db38c7eae Revised the code in the make_authorization method of the test client. 2022-11-29 21:53:16 +08:00
9616fb3ddc Added the get_opaque inline function in the make_response_header method of the DigestAuth class for readability. 2022-11-29 21:52:19 +08:00
f473db29a8 Revised the order in .gitignore. 2022-11-29 20:32:25 +08:00
b39e9b1321 Added sonar-project.properties to .gitignore. 2022-11-29 20:25:08 +08:00
f3b525d715 Replaced random.random() with secrets.randbits() in the make_response_header method of the DigestAuth class. 2022-11-29 19:13:50 +08:00
0f3694ba05 Added the SonarQube .scannerwork directory to .gitignore. 2022-11-29 19:12:47 +08:00
2425d99492 Advanced to version 0.2.0. 2022-11-27 07:06:35 +11:00
be163d35fb Added the on-login callback for the log in bookkeeping. 2022-11-27 06:58:29 +11:00
2aaaa9f47f Changed the BasePasswordGetter and BaseUserGetter from abstract to non-abstract, to simplify the code. 2022-11-27 06:32:02 +11:00
cb3e313e21 Revised the FlaskLoginTestCase test case and README.rst for illustrations on how to retrieve the currently logged-in user. 2022-11-26 18:59:17 +11:00
6f49a180e3 Revised the DigestAuth class to deal with the dummy get_password_hash and get_user functions when they are not registered yet. 2022-11-26 09:37:13 +11:00
af8c3a484c Revised so that you always call digest_auth.init_app(), to avoid confusion. It remembers the current application. The logout() method no longer need current_app for the current application. 2022-11-25 09:14:57 +11:00
65c3322ecc Revised the routes in the examples in README.rst. 2022-11-25 08:41:30 +11:00
cb5cfaf7d4 Added logging out. 2022-11-25 08:40:27 +11:00
dda8472a76 Revised the test_stale_opaque tests of the AuthenticationTestCase and FlaskLoginTestCase test cases to use the super method instead of the overridden method of the Client class. 2022-11-25 00:18:43 +11:00
177f549786 Changed the test_stale tests to test_stale_opaque that also tests if the opaque value is still the same across the client authentication requests. 2022-11-24 23:55:49 +11:00
ff8ada129d Added the docstring documentation to the dummy user of the Flask-Login test case. 2022-11-24 23:48:09 +11:00
ccec1365bf Revised the AuthenticationTestCase and FlaskLoginTestCase test cases for simplicity and readability. 2022-11-24 23:46:45 +11:00
78514a8f17 Added to test the stale value of the WWW-Authenticate response header in the AuthenticationTestCase and FlaskLoginTestCase test cases. 2022-11-24 21:53:21 +11:00
3dcc409bef Changed the make_authorization method from private to public in the test client. 2022-11-24 21:45:11 +11:00
2156aa710f Added the instructions on setting the password hash in README.rst. 2022-11-24 21:34:48 +11:00
a43c6aea89 Added rationale to HTTP Digest Authentication in README.rst. 2022-11-24 21:25:01 +11:00
8e29c91f92 Revised README.rst. 2022-11-24 21:10:25 +11:00
8ec1e6fd02 Advanced to version 0.1.1. 2022-11-24 08:43:37 +11:00
b37861eccc Changed the minimum python version to 3.7. 2022-11-24 08:43:02 +11:00
f2e51b46cb Fixed a grammar typo in README.rst. 2022-11-24 08:20:18 +11:00
387f86ef8c Advanced to version 0.1.0. 2022-11-24 08:16:49 +11:00
1e43206ee7 Revised the URI in setup.cfg. 2022-11-24 08:02:17 +11:00
fa943b4831 Added the installation instructions to README.rst. 2022-11-24 07:43:07 +11:00
c748fcdb16 Revised README.rst for various places. 2022-11-24 07:38:20 +11:00
5e5d929676 Added the test client instruction to README.rst. 2022-11-24 07:31:46 +11:00
a7e2f3296f Removed an unused import from the Flask-Login test case. 2022-11-24 07:24:48 +11:00
515098c32a Moved the _get_req_auth function into the test client class, and renamed it to __make_authorization. 2022-11-24 07:16:36 +11:00
ca22b9731c Moved the ha1 and ha2 calculation into the calc_response function. 2022-11-24 07:13:21 +11:00
af7af3943a Added the usage instruction to README.rst. 2022-11-24 01:42:03 +11:00
2770e1cc12 Revised so that Flask-Login become an optional dependency. 2022-11-24 01:02:51 +11:00
292d0aaf09 Reordered the code in the test cases. 2022-11-23 23:36:41 +11:00