Mozilla Django



  1. Django Framework Python
  2. Mozilla Django
  3. Mozilla Django Oidc
  4. Mozilla Django Forms

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. Django, API, REST, Mozilla Grant. We have recently been awarded a Mozilla grant, in order to fund the next major releases of REST framework.This work will focus on seamless client-side integration by introducing supporting client libraries that are.

Latest version

Released:

Django interface with statsd

Project description

Documentation is on Read the Docs.

Mozilla Django

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

Keycloak

0.3.6.2

0.3.6.1

0.3.5

0.3.4

0.3.3

0.3.1

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.

Files for django-statsd-mozilla, version 0.4.0
Filename, sizeFile typePython versionUpload dateHashes
Filename, size django_statsd_mozilla-0.4.0-py3-none-any.whl (18.5 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size django-statsd-mozilla-0.4.0.tar.gz (10.8 kB) File type Source Python version None Upload dateHashes
Close

Django Framework Python

Hashes for django_statsd_mozilla-0.4.0-py3-none-any.whl

Hashes for django_statsd_mozilla-0.4.0-py3-none-any.whl
AlgorithmHash digest
SHA25681084f3d426f5184f0a0f1dbfe035cc26b66f041d2184559d916a228d856f0d3
MD5a113cfca95e7d2dd5617ca402d8991d7
BLAKE2-256ac545fa99753dab7ced46129a4c95c777596a2e4094a8b0f65c8764d60d5cff4
Close

Mozilla Django

Hashes for django-statsd-mozilla-0.4.0.tar.gz

Hashes for django-statsd-mozilla-0.4.0.tar.gz
AlgorithmHash digest
SHA2560d87cb63de8107279cbb748caad9aa74c6a44e7e96ccc5dbf07b89f77285a4b8
MD56d11327b404d5c7214dcab70e78100d1
BLAKE2-25652a10e09c0978b6deb91e84f7545db4a2333ef42a2a6fbab29c48c11c7c360df

If you do configure the middleware that intercepts requests and potentiallyforces a refresh to refresh your session, this gets tricky with XHR requests.Usually XHR requests (with libraries like fetch or jQuery.ajax)follow redirects by default (which is most likely a good thing). The problemis that it can’t redirect back to the OP when it’s time to refresh yoursession. So for XHR requests, some special handling is required by you.

The problem with the above code is that it’s wrong to assume the XHRresponse is going to be application/json if the server’s middlewareinsisted you need to refresh your session.

Instead watch out for a 403Forbidden response when, in conjunction,there is a header called refresh_url. Like this:

Note

Mozilla Django Oidc

The refresh middleware only applies to GET requests.

Mozilla Django Forms

You don’t have to use document.location.href to redirect immediatelyinside the client-side application. Perhaps you can other things likeupdating the DOM to say that the user has to refresh their authenticationand provide a regular link.