I want to create global authentication with middleware django restframework which check every request user authenticate or not.
I don't want to add code on every view class like this
@permission_classes([IsAuthenticated]) class UserProfile(APIView):