Skip to main content

Build PyPI version Python Versions License

Verge Auth SDK

Enterprise Authentication & RBAC for FastAPI Applications

Turn your FastAPI routes into enterprise-grade permissions automatically.

Verge Auth provides centralized authentication, role-based access control (RBAC), audit logging, and permission management with minimal integration effort.


Why Verge Auth?

Traditional authentication platforms solve login.

Verge Auth solves authentication, authorization, and permission management.

Key Features

  • Centralized Authentication
  • Route-Based Permission Generation
  • Enterprise RBAC
  • Group-Based Access Control
  • Audit Logging
  • Multi-Tenant Support
  • OIDC & SAML Ready
  • AI-Powered Security Insights
  • FastAPI Native Integration

Installation

pip install verge_auth_sdk

Quick Start

1. Add Verge Auth to Your Application

from fastapi import FastAPI
from verge_auth_sdk import add_central_auth

app = FastAPI()

# Your routes

add_central_auth(app)

2. Configure Environment Variables

AUTH_BASE_URL=https://api.vergeauth.in

VERGE_CLIENT_ID=<client-id>
VERGE_CLIENT_SECRET=<client-secret>
VERGE_SERVICE_SECRET=<service-secret>

SERVICE_NAME=hrms-service
SERVICE_BASE_URL=https://api.example.com
SERVICE_FRONTEND_URL=https://app.example.com

3. Start Your Application

When the application starts, Verge Auth automatically:

  • Registers your service
  • Discovers application routes
  • Generates route permissions
  • Synchronizes permissions with the Verge Auth platform
  • Configures JWT validation

Your application is now protected.


How Permission Generation Works

Verge Auth automatically discovers routes in your application and converts them into assignable permissions.

Example:

@app.get("/api/employees")
def list_employees():
    pass

@app.post("/api/employees")
def create_employee():
    pass

Automatically generates permissions:

hrms-service:/api/employees:get
hrms-service:/api/employees:post

Administrators can assign these permissions through the Verge Auth dashboard without modifying application code.


Authentication Flow

  1. User authenticates through Verge Auth.
  2. Verge Auth issues an authorization code.
  3. SDK exchanges the code for a secure access token.
  4. User session is established.
  5. Requests are automatically validated.
  6. Permissions are enforced on every route.

User Context

Authenticated user information is available inside requests:

from fastapi import Request

@app.get("/auth/me")
def current_user(request: Request):
    return request.state.auth

Example response:

{
  "auth_user_id": 1,
  "roles": ["HR Manager"],
  "permissions": [
    "hrms-service:/api/employees:get"
  ]
}

Supported Authentication Features

  • Local Authentication
  • Multi-Factor Authentication (MFA)
  • Passwordless Authentication
  • OIDC Federation
  • SAML Federation
  • Microsoft Entra ID Integration
  • Google Workspace Integration
  • Custom Identity Providers

Feature availability depends on your Verge Auth plan.


Security

Verge Auth implements enterprise-grade security practices:

  • RS256 JWT Verification
  • Automatic Key Rotation Support
  • HTTP-Only Secure Cookies
  • Service-to-Service Authentication
  • Fine-Grained Route Permissions
  • Audit Logging
  • Multi-Layer Access Control

Documentation

Platform Documentation:

https://vergeinfosoft.com/docs/

Product Guide:

https://vergeinfosoft.com/verge-auth-product-guide/


Support

Website:

https://vergeauth.in

Email:

contactus@vergeinfosoft.com


License

Copyright © Verge Infosoft.

All rights reserved.

Download files

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

Source Distribution

verge_auth_sdk-0.1.122.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

verge_auth_sdk-0.1.122-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file verge_auth_sdk-0.1.122.tar.gz.

File metadata

  • Download URL: verge_auth_sdk-0.1.122.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for verge_auth_sdk-0.1.122.tar.gz
Algorithm Hash digest
SHA256 87e857877dc770dc2869b5ebf62157fd20c3337443e675011b894471d77d1794
MD5 09eedffe88dc5e878f0ea095e9def1c0
BLAKE2b-256 938e49bd5ee1464b00f3a29b3c0fcf42d440c556dfa71bdeb5f93c770a913ce3

See more details on using hashes here.

File details

Details for the file verge_auth_sdk-0.1.122-py3-none-any.whl.

File metadata

File hashes

Hashes for verge_auth_sdk-0.1.122-py3-none-any.whl
Algorithm Hash digest
SHA256 3f021793b124c365214126d5a851202f15ea5fb17061c8e791fac6d67ec8888a
MD5 a1866e3727bb0203ca26c9ee3ea28241
BLAKE2b-256 56b27ae78a868407192c099791b20ecb99a1935bcc9be6dfd3f74d0ed19c914a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.123

2 files

This release

0.1.122 This release

2 files

0.1.121

2 files

0.1.119

2 files

0.1.118

2 files

0.1.117

2 files

0.1.116

2 files

0.1.115

2 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