Metadata-Version: 2.1
Name: user-authentication-jr
Version: 0.0.7
Summary: A django app with token based authentication for both Session and API Token
Home-page: https://github.com/jrbenriquez/user-authentication-jr
Author: John Rei Enriquez
Author-email: johnrei.enriquez@gmail.com
License: UNKNOWN
Description: # User Authentication with Token and/or Cookie Support
        
        This is an initial readme.
        Check out PYPI: https://pypi.org/project/user-authentication-jr/
        
        Add this to your settings:
         
          - add to `INSTALLED_APPS` after admin, auth and contenttypes
          ```
             INSTALLED_APPS = [
            'django.contrib.admin',
            'django.contrib.auth',
            'django.contrib.contenttypes',
             ...,
             'authentication',
             ]
          ```
        
          - to use the User model
          
          ```
            AUTH_USER_MODEL = 'authentication.User'
          ```
          
          - add authentication class
           ```
           
           DEFAULT_AUTHENTICATION_CLASSES = [...., 'authentication.utils.token.ExpiringTokenAuthentication']
           REST_FRAMEWORK_TOKEN_SECONDS_EXPIRY = 3600
           ```
           - add url entry for module to your urls.py
           ```
            path('auth/', include('authentication.urls')),
           ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
