Skip to content

Commit

Permalink
fix for django 1.11
Browse files Browse the repository at this point in the history
fix described in issue 6
crgwbr#6
  • Loading branch information
managai committed May 20, 2017
1 parent 940f7e5 commit f83e0b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asymmetric_jwt_auth/middleware.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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):
Expand Down

0 comments on commit f83e0b3

Please sign in to comment.