mitol-django-oauth-toolkit-extensions
This is the Open Learning's extensions to django-oauth-toolkit.
Getting started
pip install mitol-django-oauth-toolkit-extensions
Configuration
Add the following to settings.py:
INSTALLED_APPS = [
...
"mitol.oauth_toolkit_extensions.apps.OAuthToolkitExtensionsApp",
]
# required for migrations
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
OAUTH2_PROVIDER = {
...
# enable the custom scopes backends
"SCOPES_BACKEND_CLASS": "mitol.oauth_toolkit_extensions.backends.ApplicationAccessOrSettingsScopes",
}
Usage
After installing this app, a modified Application django-admin interface (/admin/oauth2_provider/application/) is available that allows you to optionally create an ApplicationAccess record. If you create this record, it will limit scope authorization to the scopes specified in that record. Otherwise the allowed scopes will be derived from settings.
Metadata
Release files for mitol-django-oauth-toolkit-extensions 2026.10.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mitol_django_oauth_toolkit_extensions-2026.10.30.tar.gz | 8.3 kB | With provenance | Details for mitol_django_oauth_toolkit_extensions-2026.10.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mitol_django_oauth_toolkit_extensions-2026.10.30-py3-none-any.whl | Python 3 | none | any | Details for mitol_django_oauth_toolkit_extensions-2026.10.30-py3-none-any.whl |
Total release size: 20.0 kB
Release files / mitol_django_oauth_toolkit_extensions-2026.10.30.tar.gz
| Download URL | mitol_django_oauth_toolkit_extensions-2026.10.30.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70e77732ac83076c38db6567c270d83f98549635260dcc73e7912a39e23ddf14
|
|
BLAKE2b-256 checksum How to use checksums |
51f9ed3fc9318140615cc260433a10a7dd4219673a9d1442f9d0c9e5b0e36ee7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / mitol_django_oauth_toolkit_extensions-2026.10.30-py3-none-any.whl
| Download URL | mitol_django_oauth_toolkit_extensions-2026.10.30-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ba0976d705da933f719da5b46e9c6d1512608f9a7e2efdd6207906f73fd8fb8
|
|
BLAKE2b-256 checksum How to use checksums |
75787b8a0b33e6c294bd943b583949cf051ec5faec39cf301e3269efb9df49c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for mitol-django-oauth-toolkit-extensions 2026.10.30
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mitol_django_oauth_toolkit_extensions-2026.10.30.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.