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.dev4 Python: >=3.10,<3.16 License: Apache-2.0 Notice: attribution Layer: 50 protocols PyPI version for tba-protocol-oidc-relying-party

Monthly PyPI downloads for tba-protocol-oidc-relying-party README hits for tba-protocol-oidc-relying-party SSOT: governed 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.

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.

When to use it

Choose tba-protocol-oidc-relying-party for this responsibility: OpenID Connect relying-party and OAuth client protocol implementation package for the TBA package suite. Its 50-protocols placement keeps protocol semantics and projections separate from deployment hosting or ownership of persistence implementations.

Installation

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

Install the current tba-protocol-oidc-relying-party source checkout when working ahead of a PyPI release:

uv pip install ./pkgs/50-protocols/tba-protocol-oidc-relying-party

Quick start

With uv available, save the example as quickstart.py. This isolated Python 3.12 command requires the selected version to be available on PyPI; Installation also documents the checkout workflow.

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.dev4" python quickstart.py

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

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()

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.

Injected dependencies

Explicit construction inputs and collaborators for tba-protocol-oidc-relying-party:

  • BrowserMemorySession construction inputs: policy, client_secret. Definition.
  • DiscoveryClient construction inputs: fetch. Definition.
  • UserInfoClient construction inputs: fetch. Definition.
  • RelyingParty construction inputs: config, state_store, session_store. Definition.
  • validate_id_token_claims construction inputs: issuer, audience, nonce. Definition.
  • verify_id_token construction inputs: verifier, issuer, audience, nonce, now, userinfo, maximum_age. Definition.
  • migrate_configuration construction inputs: source, target. Definition.

Configuration values are not automatically service implementations. Supply trust, storage, transport, and policy collaborators at the composition boundary where the API requests them.

Operations and readiness

tba-protocol-oidc-relying-party exposes protocol semantics and projections. Public operations found in its source:

  • capability_report — source.
  • compose_rp_id_token_claim_set — source.
  • BrowserMemorySession.set — source.
  • BrowserMemorySession.get — source.
  • BrowserMemorySession.clear — source.
  • assert_browser_no_client_secret — source.
  • validate_browser_storage_policy — source.
  • JwksCache.put — source.
  • JwksCache.get — source.
  • DiscoveryClient.discover — source.
  • UserInfoClient.get — source.
  • RelyingParty.build_authorization_url — source.

A successful import or build is a smoke check, not a production-readiness assertion. Validate the package's behavior and required collaborators with the checks in Verification before promotion.

Protocol consumers

No active layer-50 manifest declares a direct runtime dependency on tba-protocol-oidc-relying-party. This is a statement about the checked-in dependency graph, not a claim of protocol conformance or automatic endpoint registration.

Other direct consumers include tba-auth, tba-router-relying-party-session.

Non-goals

tba-protocol-oidc-relying-party does not take ownership of deployment hosting or ownership of persistence implementations.

Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.

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.

tba-protocol-oidc-relying-party follows the canonical SSOT registry and package index. Keep its 50-protocols ownership, public imports, declared dependencies, examples, and release metadata aligned.

Changes must pass the README standards gate, package checks, and the evidence requirements relevant to the changed behavior. Update SSOT through the repository's CLI workflow when changing governed claims or boundaries.

Verification

A prior published-version quick start informed this example. A registry badge is not evidence that this checkout's selected version or example has been verified against PyPI. See the public package entry point.

Metadata

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

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.dev4
File Size Uploaded Provenance Actions
tba_protocol_oidc_relying_party-0.4.0.dev4.tar.gz 19.9 kB Without provenance Details for tba_protocol_oidc_relying_party-0.4.0.dev4.tar.gz

Built distribution (wheel)

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

Total release size: 43.0 kB

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

Download URL tba_protocol_oidc_relying_party-0.4.0.dev4.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4c145b017ae4c76da64b2b87cf964099253abfc9cde99ff3d0b3c1e2b70ef039
BLAKE2b-256 checksum
How to use checksums
744040185fde0d702aeb18eae4b552253c8232c48736469dd359c334064cf1da
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.dev4-py3-none-any.whl

Download URL tba_protocol_oidc_relying_party-0.4.0.dev4-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3685b2279866838130a1182a9b2a81ecde010635d8e28d4c19fe022eca10990f
BLAKE2b-256 checksum
How to use checksums
89c2e95ba739e7a61e55503f3d4997e33d5bfc1b79820b6f0c6676c45b1f2e14
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.dev4

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