change structure of permissions output
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
from django.utils.deprecation import MiddlewareMixin
|
||||
from .models import BlacklistedAccessToken
|
||||
from apps.authentication.tools import get_token_jti
|
||||
from rest_framework.exceptions import AuthenticationFailed
|
||||
from apps.authentication.exceptions import TokenBlackListedException
|
||||
from rest_framework.response import Response
|
||||
from django.http import JsonResponse
|
||||
from rest_framework import status
|
||||
|
||||
|
||||
class BlockedTokenMiddleware:
|
||||
""" Check blocked access token authentication """
|
||||
|
||||
def __init__(self, get_response):
|
||||
self.get_response = get_response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user