Release 1.5.0
Features:
- Appwrite Authentication for DRF: Introduced the
AppwriteAuthentication
class, enabling Django Rest Framework users to authenticate with Appwrite easily. This authentication class leverages Appwrite's JWT mechanism to authenticate users, making it more streamlined and efficient. - Custom
setup.py
Commands: Added custom build and publish commands insetup.py
, simplifying the package build and publish process. Users can now build the package usingpython setup.py build
and publish it withpython setup.py publish --version=x.x.x
.
Improvements:
- Enhanced Middleware Configuration: Refined the
AppwriteMiddleware
to fetch configurations more elegantly, avoiding redundancy. Also, improved error handling and logging mechanisms to provide clearer feedback to developers. - Documentation Update: Enhanced the README with clear instructions, added information on the new
AppwriteAuthentication
class, and updated usage examples.
Notes:
For those using AppwriteMiddleware
, remember that CSRF protection is in place by default in Django. Since the middleware leverages session-based authentication, ensure that the CSRF tokens are correctly set and verified in AJAX requests to avoid 403 errors.