Skip to main content

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

supercortex_fastapi_auth-0.1.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

supercortex_fastapi_auth-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file supercortex_fastapi_auth-0.1.2.tar.gz.

File metadata

File hashes

Hashes for supercortex_fastapi_auth-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bd953f5b6efdd24820292be70efc22ad9adde9dc218c2947db2d60b0d169a565
MD5 d329c0f5485ff6fd03192767eb98d885
BLAKE2b-256 770120b32c7e2f2b5f4f18db4bc7812fe4a4b5cd0d99d645cef741582c957644

See more details on using hashes here.

File details

Details for the file supercortex_fastapi_auth-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for supercortex_fastapi_auth-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 814fc8178c629b6cb3dde53a8fd55a02d3cd17140f62c1e7ca7c8b6c3dbc7b38
MD5 6b4b3a439ec4837f778bb5709de9b409
BLAKE2b-256 15c3017eab529870bbad3a05cf946e467172d3b5a0bdbfc81f7aaca21a90dcf6

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