Skip to main content

Intflow Auth relying application SDK.

Project description

Intflow Auth SDK

Python SDK for relying applications that integrate with Intflow Auth.

This package is for application backends that need to validate Intflow-issued tokens and enforce application roles. It does not provide operator credential storage, service runtime components, or Admin API automation.

Install

python -m pip install intflow-auth-sdk

Current Status

This package provides PKCE helpers, authorization URL construction, OIDC discovery/JWKS caching, Intflow access-token verification, and application-role checks.

from intflow_auth_sdk import create_token_verifier, require_app_role

with create_token_verifier(audience="your-oauth-client-id") as verifier:
    verified = verifier.verify_access_token(access_token)
    require_app_role(verified.payload, "admin")

print(verified.payload["sub"])

Long-running services should create one IntflowTokenVerifier or AsyncIntflowTokenVerifier during startup, reuse it for request handling, and call close() or aclose() during shutdown. One-shot helper functions remain available for scripts and tests.

For local fake-token examples, see examples/python-sdk-consumer.

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

intflow_auth_sdk-0.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

intflow_auth_sdk-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file intflow_auth_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: intflow_auth_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for intflow_auth_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 90e0bcad681671a77db32d20e99193c132be064bab85abe08d896ac19ef2dfa8
MD5 d11c3304e19ed0663cd588dbf6a7657f
BLAKE2b-256 548c5527c73b353a3df25c20f53348c7a82cb584ca0b0ffe7db3625c41a9bf03

See more details on using hashes here.

Provenance

The following attestation bundles were made for intflow_auth_sdk-0.1.1.tar.gz:

Publisher: publish-python-sdk.yml on yeon3724/intflow-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file intflow_auth_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for intflow_auth_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b271469a9176a00b51a3aecff07a80120bcf69dac31d89bfccd62b482284e2dd
MD5 3d865610197dd895c344bf2711752b22
BLAKE2b-256 b7dc555340ab1566ca796072dfb56f44c56189edee7b289fee242a8599af74c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for intflow_auth_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-python-sdk.yml on yeon3724/intflow-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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