This is an edX-customized fork of django-oauth2-provider, a Django application that provides customizable OAuth2-authentication for your Django projects.
- Fixed a compatibility issue with migrations and Python 3
- Added support for storing settings.SECRET_KEY as bytes.
- Added python_2_unicode_compatible decorator to models.
- Added Python 3 support.
- Added management command to delete expired OAuth2 access and refresh tokens.
- More management command MySQL compatibility updates.
- Update management command to be MySQL 5.6 compatible, use ORM for deletions.
- Add management command to delete expired OAuth2 grant tokens.
- Add Django 1.10/1.11 support.
- Add 'nonce' to OAuth2 grant tokens model.
This release contains a backward incompatible change:
Foreign key reverse names have been specified, so this library can be installed alongside django-oauth-toolkit. Code that traverses from the User model to django-oauth2-provider models will need to update the related name used.
>>> user.access_token >>> user.grant >>> user.refresh_token
becomes:
>>> user.dop_access_token >>> user.dop_grant >>> user.dop_refresh_token
django-oauth2-provider is released under the MIT License. Please see the LICENSE file for details.