DRF (Django REST Framework) integration¶. If you want DRF to authenticate users based on an OAuth access token provided in the Authorization header, you can use the DRF-specific authentication class which ships with the package. Add this to your settings. A Django management command can be used as a cron job or called manually to keep the data in sync with Mozilla.
Latest versionReleased:
Django interface with statsd
Project description
Documentation is on Read the Docs.
License
BSD and MPL
Portions of this are from commonware:
Release historyRelease notifications | RSS feed
0.4.0
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8.7
0.3.8.6
0.3.8.5
0.3.8.4
0.3.8.3
0.3.8.2
0.3.8.1
0.3.8
0.3.7
0.3.6.2
0.3.6.1
0.3.5
0.3.4
0.3.3
0.3.1
Put mac os on pc. 0.3
0.2.1
0.2
0.1.2
0.1.1
0.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django_statsd_mozilla-0.4.0-py3-none-any.whl (18.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size django-statsd-mozilla-0.4.0.tar.gz (10.8 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for django_statsd_mozilla-0.4.0-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | 81084f3d426f5184f0a0f1dbfe035cc26b66f041d2184559d916a228d856f0d3 |
MD5 | a113cfca95e7d2dd5617ca402d8991d7 |
BLAKE2-256 | ac545fa99753dab7ced46129a4c95c777596a2e4094a8b0f65c8764d60d5cff4 |
Hashes for django-statsd-mozilla-0.4.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 0d87cb63de8107279cbb748caad9aa74c6a44e7e96ccc5dbf07b89f77285a4b8 |
MD5 | 6d11327b404d5c7214dcab70e78100d1 |
BLAKE2-256 | 52a10e09c0978b6deb91e84f7545db4a2333ef42a2a6fbab29c48c11c7c360df |
If you want DRF to authenticate users based on an OAuth access token provided inthe Authorization
header, you can use the DRF-specific authentication classwhich ships with the package.
What Is Django Web Framework
Add this to your settings:
Note that this only takes care of authenticating against an access token, andprovides no options to create or renew tokens.
Mozilla Django Oidc
If you’ve created a custom Django OIDCAuthenticationBackend
and added thatto your AUTHENTICATION_BACKENDS
, the DRF class should be smart enough tofigure that out. Alternatively, you can manually set the OIDC backend to use: