Skip to main content

fyle-django-allauth

Fyle OAuth 2.0 provider for django-allauth, lets you associate Fyle accounts with your User accounts.

Dependencies

Install django-allauth and configure it.

Quick start

  1. Install fyle-django-allauth

    pip install fyle-django-allauth
    
  2. Include 'fyle_allauth' in the INSTALLED_APPS section of settings.py :

    INSTALLED_APPS = (
    ...
    'django.contrib.sites',
    
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'fyle_allauth'  # new 
    
  3. Fyle App registration (get your client_id and client_secret here)

    1. Login to Fyle
    2. Goto settings and click on Developers
    3. Click on create new app, enter the details and select type as OAuth 2.0
    4. For Redirect URI enter
      1. 'http://localhost:8000/accounts/fyle/login/callback/' for development
      2. 'https://your_domain/accounts/fyle/login/callback/' for production
    5. Note down the client_secret and client_id
  4. Open django-admin and create a new record under Social Applications Select Fyle as provider and enter the above noted client_secret and client_id.

    Final step is to add our site to the Chosen sites on the bottom.

  5. Visit http://localhost:8000/accounts/fyle/login to login using your Fyle account.

  6. If using a custom user model then add the below lines to settings.py

    # For custom user model that has email as the user identifying field
    ACCOUNT_USER_MODEL_USERNAME_FIELD = None
    ACCOUNT_USERNAME_REQUIRED = False
    ACCOUNT_EMAIL_REQUIRED = True
    ACCOUNT_AUTHENTICATION_METHOD = 'email'
    
    # Disable verification mail [optional]
    ACCOUNT_EMAIL_VERIFICATION = 'none'  
    
  7. If you are using a different application then update your base URL by adding the below line to settings.py

    FYLE_BASE_URL = 'https://app.fyle.in'
    

For more info on customisation refer the django-allauth documentation

Metadata

Release files for fyle-django-allauth 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fyle-django-allauth 0.1.2
File Size Uploaded
fyle-django-allauth-0.1.2.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fyle-django-allauth 0.1.2
File Interpreter ABI Platform
fyle_django_allauth-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / fyle-django-allauth-0.1.2.tar.gz

Download URL fyle-django-allauth-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3fffaadd2260c3d35924047084eee10bfbcc8221d1595ac59396ec92848f2ab4
BLAKE2b-256 checksum
How to use checksums
3fe5e3a34c4da95a53005be37df192a1abf59a2e0372e53b039a1c6dc794fe84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release files / fyle_django_allauth-0.1.2-py3-none-any.whl

Download URL fyle_django_allauth-0.1.2-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b26779113c9f5e834cdbfa1f010fe67f8ebea4c940eca39c9024d97cfce6f692
BLAKE2b-256 checksum
How to use checksums
3ad51cf4450a3a1d93f427c6d9f3e561896e62305292fb46671706f4a74b31c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page