Skip to main content

A Python library for OAuth2 authentication across frameworks and providers

Project description

Simplify OAuth2 Authentication


Documentation Open Source Community PyPI Downloads


Submit Issue with Screen Recording
If you're experiencing any issues or have suggestions, please record your screen and submit it here! This helps us understand your problem better and resolve it more efficiently.


Omni-Authify is a Python library that makes OAuth2 authentication a breeze across multiple frameworks and providers. Its main goal is to give you a unified and easy-to-use interface for adding social logins to your applications.

flowchart TD
    %% Value Proposition
    valueProposition["🚀 Save Your Time and Spend it with your Family
    <br/>⏱️ Integrate Multiple OAuth Providers in Minutes
    <br/>🔓 Secure, Standardized Social Login Solution"]

    %% System Requirements
    subgraph Requirements ["🔧 System Requirements"]
        python[" Python 3.8+
        🐍 Minimum Version"]
        pip[" pip 24.3.1+
        📦 Package Manager"]
        requests[" requests>=2.32.3
        🌐 HTTP Library"]
    end
    %% Providers Subgraph
    subgraph Providers ["🌍 OAuth2 Providers"]
        google[" Google 
        OAuth 2.0
        📦 Client ID/Secret"]
        facebook[" Facebook/Instagram 
        OAuth 2.0
        📦 Client ID/Secret
        🔒 Scope: email,public_profile"]
        twitter[" Twitter/X 
        OAuth 2.0
        📦 Client ID/Secret"]
        linkedin[" LinkedIn 
        OAuth 2.0
        📦 Client ID/Secret"]
        github[" GitHub 
        OAuth 2.0
        📦 Client ID/Secret"]
        apple[" Apple 
        OAuth 2.0
        📦 Client ID/Secret
        🔒 Sign in with Apple"]
        telegram[" Telegram 
        Bot Token
        🔑 API Token"]
    end
    %% Frameworks Subgraph
    subgraph Frameworks ["🧰 Supported Frameworks"]
        django[" Django 
        Version: 3+
        📦 pip install omni-authify[django]
        🔧 Django>=4.2, <=5.1.3"]
        djangoDRF[" Django-DRF 
        Version: 3.3+
        📦 pip install omni-authify[drf]
        🔧 DRF>=3.12.3, <=3.15.2"]
        fastapi[" FastAPI 
        Latest Version
        📦 pip install omni-authify[fastapi]
        🔧 fastapi>=0.115.0"]
        flask[" Flask 
        Latest Version
        📦 pip install omni-authify[flask]
        🔧 Flask>=3.0.0"]
    end
    %% Connections
    valueProposition --> Requirements
    Requirements --> Providers
    Providers --> Frameworks

    %% Styling
    classDef providerStyle fill:#f0f8ff,color:#003366,stroke:#6699cc,stroke-width:2px;
    classDef frameworkStyle fill:#e6f3e6,color:#004d00,stroke:#66a366,stroke-width:2px;
    classDef requirementsStyle fill:#fff0e6,color:#4d2600,stroke:#cc8533,stroke-width:2px;
    classDef valuePropositionStyle fill:#e6f2ff,color:#000080,stroke:#4169e1,stroke-width:3px,font-weight:bold;

    class google,facebook,twitter,linkedin,github,apple,telegram providerStyle;
    class django,djangoDRF,fastapi,flask frameworkStyle;
    class python,pip,requests requirementsStyle;
    class valueProposition valuePropositionStyle;

✨ Features

  • 🌍 Multiple Providers: Currently supports Facebook OAuth2 authentication, with more to come.
  • 🔧 Framework Integration: Works seamlessly with Django, Django REST Framework (DRF), FastAPI and Flask.
  • ⚡ Easy to Use: Requires minimal setup to get started.
  • 🚀 Extensible: Designed to support more providers and frameworks as your needs grow.

📚 Table of Contents


🚀 Usage Examples

Follow the example below to quickly integrate Omni-Authify into your application.

from omni_authify.providers import Facebook

# Initialize the provider
facebook_provider = Facebook(
    client_id='your-client-id',
    client_secret='your-client-secret',
    redirect_uri='your-redirect-uri'
)

# Get authorization URL
auth_url = facebook_provider.get_authorization_url(state='your-state')

# After redirect and code exchange
access_token = facebook_provider.get_access_token(code='authorization-code')

# Fetch user profile
user_info = facebook_provider.get_user_profile(access_token, fields='your-fields')

🛠️ Installation Guide

Check out the full installation guide here for detailed instructions on how to add Omni-Authify to your project.

📜 Supported Providers and Frameworks

Omni-Authify currently supports Facebook OAuth2 and integrates smoothly with Django, Django REST Framework (DRF), FastAPI and Flask. For a list of all supported providers and more details, check this page.

🔐 License

This project is licensed under the MIT License. See the LICENSE file for more information.


Omni-Authify is your go-to solution for easy social login integration, whether you're building a simple python project or scaling up with DRF or other frameworks like FastAPI or Flask. Give it a spin and enjoy smooth OAuth2 authentication!

Project details


Download files

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

Source Distribution

omni-authify-0.1.4.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omni_authify-0.1.4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file omni-authify-0.1.4.tar.gz.

File metadata

  • Download URL: omni-authify-0.1.4.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for omni-authify-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e9167d236d54e3a2a1fcfa65521f8fafb153ce4afbb63fc4b2b47c503417931d
MD5 f2d61a9dcec4acb848a9056d50cb763c
BLAKE2b-256 d3ee9873d760255b9bcb8b4a9f3316724eb31b4be57fe5e64df923ef73528a2d

See more details on using hashes here.

File details

Details for the file omni_authify-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: omni_authify-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.18

File hashes

Hashes for omni_authify-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e23adea21b7234545d07a25849b0d6732f55171e38ed3720e20ef7d4075a5b8
MD5 eccca7508a9ed8a503ec2f1762aa2140
BLAKE2b-256 20ccca7f4fc1c6f905dbd9f2d2a245014722612ac912734be9f91ebdf90b15c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page