Skip to main content

Ferrox-Py-Auth

1. Overview (What does this do?)

The ferrox-py-auth module is a specialized extension for the Ferrox ecosystem that provides a comprehensive Identity & Access Management (IAM) suite. It delivers pre-built functionalities for managing user registrations, Single Sign-On (SSO), Role-Based Access Control (RBAC), and compliance with European data privacy laws (GDPR).

2. Philosophy (Why does it exist?)

Authentication and authorization are complex and highly sensitive domains. Re-implementing secure login flows, password hashing, SSO integration, and GDPR-compliant data deletion mechanisms for every new project is not only inefficient but heavily prone to critical security vulnerabilities. This module exists to provide a battle-tested, standardized "plug-and-play" identity solution that adheres to strict zero-trust principles.

3. Target Audience (Who is it for?)

This module is intended for backend engineers and security architects building Enterprise SaaS, financial platforms, or any consumer-facing application where data privacy (like GDPR compliance) and secure access controls are legal or operational requirements.

4. Architecture (How does it work?)

ferrox-py-auth plugs directly into the 7-Layer Onion Request Pipeline of the core ferrox-py framework, specifically occupying Layers 3 (Threat Engine) and 4 (Auth Guards). It registers a set of domain Services (AuthService, GdprService) into the central IoC Container and exposes abstract Data Models (User, UserIdentity) that can be persisted via MongoDB or SQLAlchemy adapters provided by the ferrox-py Data Component.

5. Installation / Setup

This package requires the core ferrox-py framework to function. Install it via pip:

pip install ferrox-py-auth

Ensure you have configured a persistent database layer (either SQL or NoSQL) in your core application to store the user identities.

6. Quickstart (Usage)

from ferrox_py.core.app import FerroxApp
from ferrox_py.core.container import Container
from ferrox_py_auth import AuthModule

# Initialize the IoC container
container = Container()

# The AuthModule automatically registers the AuthService, GdprService, 
# and Auth Guards into the container and application lifecycle.
container.register_module(AuthModule)

app = FerroxApp(container)
app.start()

7. Ecosystem Integration

This module relies heavily on the Security component of the core ferrox-py framework for generating and parsing PASETO/JWT tokens. It also serves as a foundational dependency for ferrox-py-commerce, as a validated User context is required before initiating billing or subscription processes.

Metadata

Release files for ferrox-py-auth 1.0.0

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

Source distribution (sdist)

Source distribution for ferrox-py-auth 1.0.0
File Size Uploaded
ferrox_py_auth-1.0.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ferrox-py-auth 1.0.0
File Interpreter ABI Platform
ferrox_py_auth-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / ferrox_py_auth-1.0.0.tar.gz

Download URL ferrox_py_auth-1.0.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b90f8b5c4f5bc69beb2fb5fe779e5ab223fb704bb626cd0de80e8f3196fea8e5
BLAKE2b-256 checksum
How to use checksums
33a1c9eb5554a1250cad70b0cb759809bc386265dc2d2814b4e213d94f45de55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / ferrox_py_auth-1.0.0-py3-none-any.whl

Download URL ferrox_py_auth-1.0.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68ca404cb2f72db010d574ccb8310e60854b402580e623760baa0d605787da6a
BLAKE2b-256 checksum
How to use checksums
c890c3e559893c7511c414c9888e39b89261dbb87812463d7e0d7a2a4ade2c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

1.2.1

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

This release

1.0.0 This release

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