Commit Graph

12 Commits

Author SHA1 Message Date
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
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
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
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
cb5cfaf7d4 Added logging out. 2022-11-25 08:40:27 +11:00
3dcc409bef Changed the make_authorization method from private to public in the test client. 2022-11-24 21:45:11 +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
2770e1cc12 Revised so that Flask-Login become an optional dependency. 2022-11-24 01:02:51 +11:00
0a69f5d3c1 Added the initial version that works. 2022-11-23 18:12:04 +11:00