Authentication and authorization for FastAPI applications
Project description
SuperCortex Auth Libraries
This directory contains the client libraries for integrating with the SuperCortex Auth System.
Libraries
Python Library (supercortex-fastapi-auth)
- Location:
src/supercortex_fastapi_auth/ - Purpose: Adds authentication support to FastAPI services
- Features: JWT validation, middleware, dependencies, protected routes
React Library (@supercortex/auth-client)
- Location:
superocrtex-react-auth/ - Purpose: Frontend integration with auth system
- Features: React hooks, auth context, API interceptors
Quick Start
See the main README.md for complete integration instructions.
Python Library
from supercortex_fastapi_auth import Auth
auth = Auth(auth_url="https://auth.apps.yourdomain.com")
auth.setup(app)
React Library
import { AuthProvider, useAuth } from '@supercortex/auth-client';
// Wrap your app
<AuthProvider>{children}</AuthProvider>
// Use in components
const { user, login, logout } = useAuth();
Development
Python Library
cd libraries
pip install -e .
React Library
cd libraries/superocrtex-react-auth
npm install
npm run build
Examples
See the examples/ directory for complete usage examples.
Documentation
For complete documentation, architecture details, and integration guides, see the main README.md.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supercortex_fastapi_auth-0.1.13.tar.gz.
File metadata
- Download URL: supercortex_fastapi_auth-0.1.13.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5bcb4a40b590f454c725bde3c26977ad8366eb77a4d24d06455e671faff20c1
|
|
| MD5 |
a983128286953530e0f1b9fe2957fbe9
|
|
| BLAKE2b-256 |
68fde3c851345a61b06b2f3c308c9fc60c6bec4ce3f2a78dc31b84ba70836e85
|
File details
Details for the file supercortex_fastapi_auth-0.1.13-py3-none-any.whl.
File metadata
- Download URL: supercortex_fastapi_auth-0.1.13-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48894de6e5ee1e0a6bc8bf592137b337ed8a504f1295055d725a6bac97496bd8
|
|
| MD5 |
dd7716bfa8c8b46a09c4fa10012c67a8
|
|
| BLAKE2b-256 |
a6ed4cf5a5039946b2524e6e1a7565859a84d8ffd5d484afd234b034fdc29264
|