Commit Graph

  • da466b74f4 Advance to version 0.7.1. main v0.7.1 依瑪貓 2024-12-09 08:34:56 +0800
  • 76ae576717 Fix test cases for compatibility with httpx 0.28.0. 依瑪貓 2024-12-09 08:29:04 +0800
  • 9da7cec1f5 Updated optional dependencies in pyproject.toml. 依瑪貓 2024-06-02 09:25:12 +0800
  • 2d0a8dbcd8 Updated the dependencies in pyproject.toml. 依瑪貓 2024-06-02 09:04:34 +0800
  • a3bc807192 Removed the test client from thd Sphinx documentation. 依瑪貓 2023-10-08 23:35:20 +0800
  • 848971709a Advanced to version 0.7.0. v0.7.0 依瑪貓 2023-10-08 22:46:59 +0800
  • 409b04af47 Added docs/requirements.txt and the "sphinx_rtd_theme" theme to the readthedocs configuration, as Read the Docs does not install sphinx_rtd_theme by default after August 7, 2023. 依瑪貓 2023-10-08 22:37:33 +0800
  • a8c34eb367 Updated the Sphinx documentation. 依瑪貓 2023-10-08 22:15:44 +0800
  • cc96987a18 Revised the FlaskLoginTestCase test case to skip testing when Flask-Login 0.6.2 conflicts with Werkzeug 3. 依瑪貓 2023-10-08 22:11:50 +0800
  • 1f657568bb Replaced the "Flask-Testing" package with the "httpx" package for testing, and retired the unused "flask_digest_auth.test" module. "Flask-Testing" is not maintained for more than 3 years, and is not compatible with Flask 3. 依瑪貓 2023-10-05 08:37:54 +0800
  • 320cfe1700 Added the SKIPPED_NO_FLASK_LOGIN constant to test_flask_login.py, to simplify the code. 依瑪貓 2023-06-10 16:45:19 +0800
  • a5188c9aa1 Advanced to version 0.6.2. v0.6.2 依瑪貓 2023-06-10 16:26:39 +0800
  • b62b98bd51 Changed the properties of the test cases from public to private. imacat 2023-06-08 17:28:35 +0800
  • 877f02fe82 Added missing documentation to the global variables and class and object properties. imacat 2023-06-08 17:20:24 +0800
  • bc888195ad Disabled logging in the AuthenticationTestCase and FlaskLoginTestCase test cases, for clearer test output. 依瑪貓 2023-05-03 08:08:51 +0800
  • 8e69733cf6 Updated the login_required view decorator of the DigestAuth class, replaced writing to STDERR directly with warning through the Flask logger. 依瑪貓 2023-05-03 08:05:28 +0800
  • f04ea7ac18 Advanced to version 0.6.1. v0.6.1 依瑪貓 2023-05-03 06:59:27 +0800
  • 15ea650ddd Revised the code that handles the "qop" and "stale" parameters of the "WWW-Authenticate" response HTTP header for the upcoming Werkzeug 2.4. 依瑪貓 2023-05-03 06:56:31 +0800
  • 5b255b6504 Split the Flask-Login login manager initialization from the init_app method to the __init_login_manager method in the DigestAuth class, to simplify the code. 依瑪貓 2023-04-29 11:17:11 +0800
  • 919b8d0dc3 Removed the unnecessary f-string in the __make_response_header method of the DigestAuth class. 依瑪貓 2023-04-29 10:44:15 +0800
  • 604ed0be27 Updated the Python version in the Read the Docs configuration. 依瑪貓 2023-04-27 00:38:46 +0800
  • 9e0a06bd4c Advanced to version 0.6.0. v0.6.0 依瑪貓 2023-04-26 23:40:40 +0800
  • e861cae2e0 Replaced importing the "typing" module as "t" with importing the individual names in the "typing" module. We do not have as many names to import. This is also to be consistent with the practices of most major and standard packages and examples. 依瑪貓 2023-04-26 23:15:13 +0800
  • 264ba158ee Updated minimal Python version to 3.8. As "typing.Literal" is used from the beginning of the project, it is never compatible with Python 3.7. I suppose it was ignored by Python 3.7 when importing the "typing" package but not the name "Literal" itself for type hints. 依瑪貓 2023-04-26 22:30:15 +0800
  • d1fd0c3693 Simplified README.rst. 依瑪貓 2023-04-23 22:43:56 +0800
  • bc15a578cb Added the change log. 依瑪貓 2023-04-23 22:36:31 +0800
  • cedff68247 Added the "VERSION" constant to the "flask_digest_auth" module for the package version, and revised "pyproject.toml" and "conf.py" to read the version from it. 依瑪貓 2023-04-23 22:14:33 +0800
  • 769ca7dddd Replaced the requirements.txt in the docs directory with the Read the Docs configuration file. 依瑪貓 2023-04-05 23:52:43 +0800
  • 33eb81f368 Replaced setup.cfg with pyproject.toml for the package settings, and rewrote the packaging rules in MANIFEST.in. 依瑪貓 2023-04-05 23:09:44 +0800
  • 5faf51c49b Removed the realm from the example in the documentation of the init_app method of the DigestAuth class. 依瑪貓 2023-01-07 15:03:37 +0800
  • d5a8bb3acd Advanced to version 0.5.0. v0.5.0 依瑪貓 2023-01-06 00:21:19 +0800
  • 27d27127f6 Added the DIGEST_AUTH_REALM configuration variable as the recommended way to set the authentication realm. Changed the default realm from an empty string to "Login Required". 依瑪貓 2023-01-06 00:19:24 +0800
  • 5ebdea6d0a Reordered the code in the create_app methods of the AuthenticationTestCase and FlaskLoginTestCase test cases. 依瑪貓 2023-01-05 22:50:59 +0800
  • ea31bb9579 Revised the coding style in the init_app method of the DigestAuth class. 依瑪貓 2023-01-05 22:42:59 +0800
  • 4f30756dc5 Advanced to version 0.4.0. v0.4.0 依瑪貓 2023-01-04 21:29:51 +0800
  • cdc057f851 Renamed the package from flask-digest-auth to Flask-DigestAuth, by the Flask recommended extension guidelines https://flask.palletsprojects.com/en/latest/extensiondev/. 依瑪貓 2023-01-04 21:29:12 +0800
  • 574ecade05 Revised the copyright year in auth.py. 依瑪貓 2023-01-04 21:29:04 +0800
  • 84b9c5f62e Renamed digest_auth_state to _digest_auth_state as the state stored in the request instance. 依瑪貓 2023-01-04 20:48:45 +0800
  • 4990de085c Changed to store the DigestAuth instance from app.digest_auth to app.extensions["digest_auth"]. 依瑪貓 2023-01-04 20:42:51 +0800
  • 51e51ae4e2 Replaced auth.app with current_app. 依瑪貓 2023-01-04 20:37:57 +0800
  • 2de770aed0 Advanced to version 0.3.1. v0.3.1 imacat 2022-12-29 23:49:28 +0800
  • 9ab413d583 Added the test_disabled test to the FlaskLoginTestCase test case. imacat 2022-12-29 23:44:02 +0800
  • aeb93a60e5 Fixed to store the auth state in request instead of the g global object in the flask_login load_user_from_request and unauthorized handlers in the init_app method of the DigestAuth class. This is so that the auth state is always reset in the lifecycle of request even if g stays. Revised the unauthorized to create a new auth state if it is not available in the current request, in the case that the load_user_from_request handler was not run previously. imacat 2022-12-29 23:43:35 +0800
  • a07118ef9c Revised the documentation for digest_auth parameter of the open method in the test client, to be clear. 依瑪貓 2022-12-07 18:59:41 +0800
  • 514e9255aa Replaced "my_user" and "my_pass" with USERNAME and PASSWORD in the examples of the test client in the documentation, to avoid GitGuardian from detecting them as real passwords. 依瑪貓 2022-12-07 18:55:52 +0800
  • 79abdc9cde Fixed the documentation of the login_required decorator in the DigestAuth class. 依瑪貓 2022-12-07 18:48:39 +0800
  • 038e7a8352 Removed the warnings in the documentation of the test client. It is API document now. All content, for public or not, are available. There is no need to warn now. 依瑪貓 2022-12-07 18:45:06 +0800
  • 0387abb4f6 Revised the documentation in the "flask_digest_auth.auth" module. 依瑪貓 2022-12-07 18:39:20 +0800
  • 10e8add9e6 Replaced the manually-added package content with the automatically-generated package content, and added the modules list to the documentation. 依瑪貓 2022-12-07 18:11:35 +0800
  • c004e28c37 Fixed the documentation of the AuthState class and the UnauthorizedException exception. 依瑪貓 2022-12-07 16:08:07 +0800
  • 46f05a1022 Updated the Sphinx version that is used to create the document template. 依瑪貓 2022-12-07 09:48:56 +0800
  • b9384150b7 Added documentation to the private properties of DigestAuth. 依瑪貓 2022-12-07 06:55:34 +0800
  • 4296756ae7 Advanced to version 0.3.0. v0.3.0 依瑪貓 2022-12-06 23:59:29 +0800
  • 83cf83a67c Revised the type hint of the "algorithm" and "__qop" properties of the DigestAuth class. 依瑪貓 2022-12-06 23:55:20 +0800
  • 7aaa7b9abe Revised the documentations. 依瑪貓 2022-12-06 23:50:46 +0800
  • 14b90de059 Revised the documentation of the "use_opaque" and "__domain" properties in the DigestAuth class. 依瑪貓 2022-12-06 23:27:28 +0800
  • e9013017fb Changed the "domain" and "qop" property to private in the DigestAuth class. 依瑪貓 2022-12-06 23:26:42 +0800
  • 6e6ac8bbe7 Changed the "serializer" property to private in the DigestAuth class. 依瑪貓 2022-12-06 23:14:32 +0800
  • 7ec56ee52d Removed the secret_key attribute from the DigestAuth class. It is actually not used. 依瑪貓 2022-12-06 23:13:45 +0800
  • b348c872dc Fixed the example in the documentation of the login_required decorator. 依瑪貓 2022-12-06 22:59:13 +0800
  • d78093ab53 Advanced to version 0.2.4. v0.2.4 依瑪貓 2022-12-06 22:48:20 +0800
  • c6b8569543 Fixed the documentation on the pytest example. 依瑪貓 2022-12-06 22:46:52 +0800
  • a1c48beb32 Removed the unused module index from the documentation. 依瑪貓 2022-12-06 22:24:39 +0800
  • a88fdf81fa Advanced to version 0.2.3. v0.2.3 依瑪貓 2022-12-06 22:18:49 +0800
  • 4993bfdd9b Added the documentation dependencies. 依瑪貓 2022-12-06 22:18:22 +0800
  • 696f350a44 Updated the version number in the documentation. 依瑪貓 2022-12-06 22:10:25 +0800
  • 409f794835 Advanced to version 0.2.2. v0.2.2 依瑪貓 2022-12-06 22:05:12 +0800
  • 92eb011470 Added the documentation to MANIFEST.in. 依瑪貓 2022-12-06 22:04:58 +0800
  • b5ecd1552b Added the .keep files to the _static and _templates subdirectories in the docs directory to keep them in the source distribution. 依瑪貓 2022-12-06 22:04:33 +0800
  • 765822a300 Revised the documentation. 依瑪貓 2022-12-06 21:54:10 +0800
  • e9a6449505 Changed the "authenticate" and "make_response_header" methods to private in the DigestAuth class. 依瑪貓 2022-12-06 21:22:16 +0800
  • df15f0b0d5 Revised the introduction in the documentation. 依瑪貓 2022-12-06 20:58:13 +0800
  • 6c7f7e8c8e Added the comment to the master_doc setting in conf.py. 依瑪貓 2022-12-06 20:02:53 +0800
  • dfc1108b41 Added master_doc to conf.py. 依瑪貓 2022-12-06 19:34:45 +0800
  • 4fe57532b0 Added the installation instructions to the introduction in the documentation. 依瑪貓 2022-12-06 19:34:26 +0800
  • d104b0f28d Revised the title of the documentation. 依瑪貓 2022-12-06 18:55:20 +0800
  • 30106c7e9f Added the introduction to the documentation. 依瑪貓 2022-12-06 18:54:40 +0800
  • 9997985d8c Added the examples to the documentation. 依瑪貓 2022-12-06 18:22:26 +0800
  • 6057fc0987 Revised the documentation of the Client class and the calc_response function. 依瑪貓 2022-12-06 18:01:01 +0800
  • a6dc530ac7 Moved the BasePasswordHashGetter, BaseUserGetter, and BaseUserGetter classes to the end of flask_digest_auth.auth, for readability. 依瑪貓 2022-12-06 17:47:21 +0800
  • 6a14c04aaa Moved UnauthorizedException from flask_digest_auth.exception to flask_digest_auth.auth, because it is only used there. 依瑪貓 2022-12-06 17:46:17 +0800
  • f9e10ecb2f Replaced validate_required with assert in the calc_response function, for simplicity. 依瑪貓 2022-12-06 17:44:18 +0800
  • b6bfb2eae9 Revised the documentation of the DigestAuth class and the calc_response function. 依瑪貓 2022-12-06 17:38:58 +0800
  • e6b4594393 Added the Sphinx documentation. 依瑪貓 2022-12-06 17:38:14 +0800
  • 495e9a9785 Advanced to version 0.2.1. v0.2.1 依瑪貓 2022-12-06 07:59:44 +0800
  • cbbd2248f0 Added the pytest test example to README.rst. 依瑪貓 2022-12-06 07:54:49 +0800
  • 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 +0800
  • 7e71115844 Fixed the test_logout test of the FlaskLoginTestCase test case to skip without Flask-Login. 依瑪貓 2022-12-03 11:56:40 +0800
  • 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 +0800
  • bbaebbc80d Fixed the long lines in the AuthenticationTestCase and FlaskLoginTestCase test cases. 依瑪貓 2022-11-30 23:35:04 +0800
  • 0dfdf70c45 Fixed a minor problem in the get_logged_in_user function. 依瑪貓 2022-11-30 08:31:58 +0800
  • 0432561b21 Revised the minor problems in README.rst. 依瑪貓 2022-11-30 08:31:26 +0800
  • 3709cb4d66 Fixed the return type hint of the get_logged_in_user function. 依瑪貓 2022-11-30 08:30:42 +0800
  • 9d0d0b2686 Revised the login_required method of the DigestAuth class for readability. 依瑪貓 2022-11-29 22:24:25 +0800
  • 8c98d35934 Revised the calc_response function for readability. 依瑪貓 2022-11-29 22:09:42 +0800
  • 7db38c7eae Revised the code in the make_authorization method of the test client. 依瑪貓 2022-11-29 21:53:16 +0800
  • 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 +0800
  • f473db29a8 Revised the order in .gitignore. 依瑪貓 2022-11-29 20:32:25 +0800
  • b39e9b1321 Added sonar-project.properties to .gitignore. 依瑪貓 2022-11-29 20:25:08 +0800
  • f3b525d715 Replaced random.random() with secrets.randbits() in the make_response_header method of the DigestAuth class. 依瑪貓 2022-11-29 19:13:50 +0800