Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tba-protocol-oidc-relying-party

TBA · Tigrbl Auth

Checkout: 0.4.0.dev3 Python: >=3.10,<3.16 License: Apache-2.0 Layer: 50 protocols PyPI version for tba-protocol-oidc-relying-party

Monthly PyPI downloads for tba-protocol-oidc-relying-party Evidence: verification

tba-protocol-oidc-relying-party is the protocol-facing package name for OpenID Connect Relying Party and OAuth client behavior. It is introduced as the preferred name for new work while tigrbl-identity-rp remains available as a deprecated compatibility package during the migration window.

Quick start

With uv available, save the example as quickstart.py. This command uses the published package in an isolated Python 3.12 environment.

from tba_protocol_oidc_relying_party import capability_report

report = capability_report()
assert report
print(sorted(report))
uv run --isolated --no-project --python 3.12 --with "tba-protocol-oidc-relying-party==0.4.0.dev3" python quickstart.py

The command prints the keys in the package's capability report.

AEO Summary

  • Package: tba-protocol-oidc-relying-party
  • Import root: tba_protocol_oidc_relying_party
  • Component kind: Auth protocol consumer package
  • Use it for discovery consumption, login URL generation, PKCE, callback handling, token exchange, ID-token validation, UserInfo, logout, and RP session helpers.
  • PKCE primitive generation and challenge verification are delegated to tba-provider-security-proof-pkce; this package keeps the RP/OAuth authorization-parameter wrapper.
  • Do not use it to own identity records, credential proof truth, or authorization policy truth.
  • Canonical implementation lives in this package; tigrbl-identity-rp re-exports this package from pkgs/deprecated for compatibility.

Installation

pip install tba-protocol-oidc-relying-party
# or
uv add tba-protocol-oidc-relying-party

Usage

from tba_protocol_oidc_relying_party import RPConfiguration, RelyingParty, make_pkce_verifier

config = RPConfiguration(issuer="https://id.example.com", client_id="app")
rp = RelyingParty(config)
verifier = make_pkce_verifier()

Public authorization code with S256

Build a RelyingParty with an HTTPS issuer, public client ID, registered HTTPS callback, and an app-owned state and session store. Supply asynchronous JSON GET and form POST functions that verify TLS, reject redirects, and use bounded timeouts. Use an issuer selected by trusted app configuration.

# Login route. Bind login.state to the current browser session before redirecting.
authorization_url, login = await rp.begin_public_login(get_json)

# Callback route. Read expected_state from that browser session.
result = await rp.complete_public_callback(
    callback_url,
    expected_state=expected_state,
    get_json=get_json,
    post_form=post_form,
)
subject = result.identity.subject

The state store must atomically consume unexpired requests scoped to the configured issuer and client. Callback completion checks the registered redirect, sends the S256 verifier without a client secret, and verifies the RS256 ID token with a key from the issuer's JWKS. Create the user's app session only after completion, using the verified issuer and subject.

Package Boundary

  • Relying Party and OAuth client protocol behavior
  • Discovery, authorization URL, PKCE, callback, token exchange, UserInfo, logout, and session helpers
  • Discovery metadata semantics are consumed from the OIDC protocol package; runtime deployment resolution and provider-side publication are not owned by the RP package.
  • App-side protocol integration consuming an issuer
  • Browser/client storage and no-client-secret policy helpers
  • The legacy logout module exports protocol validation semantics only; provider-side durable fanout planning is owned by the identity server runtime.

Governance

This package is part of the SSOT-governed TBA package suite. New RP implementation work should prefer this package name over tigrbl-identity-rp.

Verification

The quick start was run with the pinned distribution from PyPI and its declared dependencies. See the public package entry point.

Metadata

Release files for tba-protocol-oidc-relying-party 0.4.0.dev3

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

Source distribution (sdist)

Source distribution for tba-protocol-oidc-relying-party 0.4.0.dev3
File Size Uploaded Provenance Actions
tba_protocol_oidc_relying_party-0.4.0.dev3.tar.gz 13.7 kB Without provenance Details for tba_protocol_oidc_relying_party-0.4.0.dev3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tba-protocol-oidc-relying-party 0.4.0.dev3
File Interpreter ABI Platform Actions
tba_protocol_oidc_relying_party-0.4.0.dev3-py3-none-any.whl Python 3 none any Details for tba_protocol_oidc_relying_party-0.4.0.dev3-py3-none-any.whl

Total release size: 30.7 kB

Release files / tba_protocol_oidc_relying_party-0.4.0.dev3.tar.gz

Download URL tba_protocol_oidc_relying_party-0.4.0.dev3.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
82c08df4de8cfde901acceb99c87f1bbc3b3ce301d2310fafd568f49121ebff7
BLAKE2b-256 checksum
How to use checksums
3bc0349035151fd6d4cd07b67d90c28a6ba6e6c9b3c1ff29753f6c7a777b605c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tba_protocol_oidc_relying_party-0.4.0.dev3-py3-none-any.whl

Download URL tba_protocol_oidc_relying_party-0.4.0.dev3-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86ab66ad3c525a0432d87ec391b2c1f99c1839587aa879a7ef1de9464cc43b2f
BLAKE2b-256 checksum
How to use checksums
69f02a2309a661e5a63648a8d59def3db99702789ae3f3e465a4a45ad0a2f325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tba-protocol-oidc-relying-party 0.4.0.dev3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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