Block a user
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.
f57162a93c
Fixed the save method of the LocalizedModel data model to find the l10n records only for existing models, to work with Django 4.1.
7e71115844
Fixed the test_logout test of the FlaskLoginTestCase test case to skip without Flask-Login.
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.
bbaebbc80d
Fixed the long lines in the AuthenticationTestCase and FlaskLoginTestCase test cases.
0dfdf70c45
Fixed a minor problem in the get_logged_in_user function.
0432561b21
Revised the minor problems in README.rst.
3709cb4d66
Fixed the return type hint of the get_logged_in_user function.
9d0d0b2686
Revised the login_required method of the DigestAuth class for readability.
8c98d35934
Revised the calc_response function for readability.
7db38c7eae
Revised the code in the make_authorization method of the test client.
9616fb3ddc
Added the get_opaque inline function in the make_response_header method of the DigestAuth class for readability.
f473db29a8
Revised the order in .gitignore.
f3b525d715
Replaced random.random() with secrets.randbits() in the make_response_header method of the DigestAuth class.
0f3694ba05
Added the SonarQube .scannerwork directory to .gitignore.
2425d99492
Advanced to version 0.2.0.
be163d35fb
Added the on-login callback for the log in bookkeeping.
2aaaa9f47f
Changed the BasePasswordGetter and BaseUserGetter from abstract to non-abstract, to simplify the code.
cb3e313e21
Revised the FlaskLoginTestCase test case and README.rst for illustrations on how to retrieve the currently logged-in user.
6f49a180e3
Revised the DigestAuth class to deal with the dummy get_password_hash and get_user functions when they are not registered yet.
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.
65c3322ecc
Revised the routes in the examples in README.rst.
cb5cfaf7d4
Added logging out.
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.
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.
ff8ada129d
Added the docstring documentation to the dummy user of the Flask-Login test case.
8ec1e6fd02
Advanced to version 0.1.1.
b37861eccc
Changed the minimum python version to 3.7.
f2e51b46cb
Fixed a grammar typo in README.rst.
387f86ef8c
Advanced to version 0.1.0.
1e43206ee7
Revised the URI in setup.cfg.
fa943b4831
Added the installation instructions to README.rst.
c748fcdb16
Revised README.rst for various places.
5e5d929676
Added the test client instruction to README.rst.
a7e2f3296f
Removed an unused import from the Flask-Login test case.
0a69f5d3c1
Added the initial version that works.
3a460ca890
Added LICENSE, MANIFEST.in, pyproject.toml, README.rst, and setup.cfg as the starting project skeleton.
c4f1eb0498
Added .gitignore.
4afd072cc5
Fixed the records pseudo property of the Transaction data model to find the records only for existing transactions, to work with Django 4.1.