From f83e0b335d9164052d71bfd3f9b6e2875abb8934 Mon Sep 17 00:00:00 2001 From: Bruno Santeramo Date: Sat, 20 May 2017 02:05:53 +0200 Subject: [PATCH] fix for django 1.11 fix described in issue 6 https://github.com/crgwbr/asymmetric-jwt-auth/issues/6 --- asymmetric_jwt_auth/middleware.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asymmetric_jwt_auth/middleware.py b/asymmetric_jwt_auth/middleware.py index ca337a9..e3b9b50 100644 --- a/asymmetric_jwt_auth/middleware.py +++ b/asymmetric_jwt_auth/middleware.py @@ -1,3 +1,4 @@ +from django.utils.deprecation import MiddlewareMixin from django.contrib.auth import get_user_model from django.core.cache import cache from asymmetric_jwt_auth import AUTH_METHOD @@ -7,7 +8,7 @@ logger = logging.getLogger(__name__) -class JWTAuthMiddleware(object): +class JWTAuthMiddleware(MiddlewareMixin): """Django middleware class for authenticating users using JWT Authentication headers""" def create_nonce_key(self, username, iat):