Metadata-Version: 2.1
Name: drf-is-not-authenticated-class
Version: 1.0.0
Summary: Django Rest Framework Authentication Class for not authorized users
Home-page: UNKNOWN
Author: Mateusz Krzesiak
Author-email: mati44491@o2.pl
License: UNKNOWN
Description: # Django Rest Framework Authentication Class for not authorized users
        
        Some DRF views should not be accessible by logged in users.
        In such cases we need permission class that will not allow authorized users to access the resource or action.
        
        ## Installation
        ```bash
        pip install drf_is_not_authenticated_class
        ```
        
        ## Use cases
        1. Only not registered users should be able to create new user
        
        ```python
        from drf_is_not_authenticated_class import IsNotAuthenticated
        
        
        class RegisterUser(CreateAPIView):
            queryset = User.objects.all()
            permission_classes = (IsNotAuthenticated,)
        ```
        
        ## Contribution
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Requires-Python: >=3.8
Description-Content-Type: text/markdown
