Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Django application to implement OAuth 2.0 using Fyle in Django rest framework

Project description

Fyle Rest Auth

Django application to implement OAuth 2.0 using Fyle in Django rest framework


This project requires Python 3+ and Requests library (pip install requests).

  1. Download this project and use it (copy it in your project, etc).

  2. Install it from pip.

     $ pip install fyle-rest-auth


To use this Django app you'll need fyle credentials used for OAuth2 authentication: client ID, client secret and refresh token.

  • Add fyle rest auth in INSTALLED_APPS in settings file
  • Add authentication class to settings file
  • Add serializer path in settings file
    'USER_DETAILS_SERIALIZER': 'users.serializers.UserSerializer'
  • Add the constants in settings file
FYLE_BASE_URL = '<Fyle Base URL>'
FYLE_TOKEN_URI = '<Fyle Token URI>'
FYLE_CLIENT_ID = '<Fyle Client Id>'
FYLE_CLIENT_SECRET = '<Fyle Client Secret>'
  • Include urls in the the django app.
urlpatterns = [
    path('api/auth/', include('fyle_rest_auth.urls')),

  • Configure cache in settings file
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'your_cache_table',
  • Creating the cache table
python createcachetable


This project is licensed under the MIT License - see the LICENSE file for details

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fyle-rest-auth, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size fyle_rest_auth-0.7.0-py3-none-any.whl (11.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fyle-rest-auth-0.7.0.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page