This release is a pre-release and may not be stable for production use.
tba-protocol-oidc-relying-party
tba-protocol-oidc-relying-party
OpenID Connect relying-party and OAuth client protocol implementation package for the TBA package suite.
Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License
Overview
Summary
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.
- 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-rpre-exports this package frompkgs/deprecatedfor compatibility.
Why This Package
tba-protocol-oidc-relying-party isolates this responsibility: OpenID Connect relying-party and OAuth client protocol implementation package for the TBA package suite. Its package source exposes BrowserMemorySession, BrowserStoragePolicy, CAPABILITY_REQUIREMENTS, COMPATIBILITY_PATHS, CURRENT_VERSION, CallbackResult, DiscoveryClient, FEATURES_BY_VERSION, JwksCache, LoginRequest, PkceVerifier, RPConfiguration, RPError, RPSession, RP_ID_TOKEN_CLAIMS, allowing consumers to select this package without treating adjacent packages as part of its public contract.
When to Use
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 050-protocols placement keeps protocol semantics and projections separate from deployment hosting or ownership of persistence implementations.
Features
BrowserMemorySession: declared in src/tba_protocol_oidc_relying_party/client.pyJwksCache: declared in src/tba_protocol_oidc_relying_party/client.pyDiscoveryClient: declared in src/tba_protocol_oidc_relying_party/client.pyUserInfoClient: declared in src/tba_protocol_oidc_relying_party/client.pyRelyingParty: declared in src/tba_protocol_oidc_relying_party/client.pyVerifiedExternalIdentity: declared in src/tba_protocol_oidc_relying_party/client.pyVerifiedCallback: declared in src/tba_protocol_oidc_relying_party/client.pyRpCompatibility: declared in src/tba_protocol_oidc_relying_party/compatibility.py
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.
Getting Started
Prerequisites
Python >=3.10,<3.16 is required. The manifest declares runtime dependencies including tba-concrete-jws, tba-provider-jose-cryptography, tba-protocol-oidc, tba-concrete-claim-audience, tba-concrete-claim-authentication-context, tba-concrete-claim-authentication-methods, tba-concrete-claim-authentication-time, tba-concrete-claim-authorized-party, tba-concrete-claim-expiration, tba-concrete-claim-issued-at, tba-concrete-claim-issuer, tba-concrete-claim-nonce. Read the example’s inputs and service requirements before execution.
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/050-protocols/tba-protocol-oidc-relying-party
uv
uv add tba-protocol-oidc-relying-party
pip
python -m pip install tba-protocol-oidc-relying-party
Poetry
poetry add 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.
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.
Example
Source: docs/readme/quick_start.py.
from tba_protocol_oidc_relying_party import capability_report
report = capability_report()
assert report
print(sorted(report))
Expected Result
The example demonstrates the documented tba-protocol-oidc-relying-party source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
Usage
Common Workflows
Source: docs/readme/usage.py.
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()
Configuration
Configure tba-protocol-oidc-relying-party through the APIs in package source; its manifest describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
Error Handling
The inspected tba-protocol-oidc-relying-party source raises RPError, TypeError, ValueError. Handle these at the calling boundary and consult the implementation for the triggering conditions.
Best Practices
Use the explicit tba-protocol-oidc-relying-party imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing BrowserMemorySession, BrowserStoragePolicy, CAPABILITY_REQUIREMENTS, COMPATIBILITY_PATHS, CURRENT_VERSION, CallbackResult, DiscoveryClient, FEATURES_BY_VERSION, JwksCache, LoginRequest, PkceVerifier, RPConfiguration, RPError, RPSession, RP_ID_TOKEN_CLAIMS; an import or successful installation alone does not establish its runtime guarantees.
Package Boundary
What It Owns
- 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
logoutmodule exports protocol validation semantics only; provider-side durable fanout planning is owned by the identity server runtime.
Public API and Import Surfaces
Import namespace: tba_protocol_oidc_relying_party.
Source-declared exports or types: BrowserMemorySession, BrowserStoragePolicy, CAPABILITY_REQUIREMENTS, COMPATIBILITY_PATHS, CURRENT_VERSION, CallbackResult, DiscoveryClient, FEATURES_BY_VERSION, JwksCache, LoginRequest, PkceVerifier, RPConfiguration, RPError, RPSession, RP_ID_TOKEN_CLAIMS.
Inspect package source for exact signatures; this inventory does not designate every internal module as stable.
Entry Points
This package declares no command-line, GUI, or plugin entry points in its manifest.
Injected Dependencies
Explicit construction inputs and collaborators for tba-protocol-oidc-relying-party:
BrowserMemorySessionconstruction inputs:policy,client_secret. Definition.DiscoveryClientconstruction inputs:fetch. Definition.UserInfoClientconstruction inputs:fetch. Definition.RelyingPartyconstruction inputs:config,state_store,session_store. Definition.validate_id_token_claimsconstruction inputs:issuer,audience,nonce. Definition.verify_id_tokenconstruction inputs:verifier,issuer,audience,nonce,now,userinfo,maximum_age. Definition.migrate_configurationconstruction 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.
Protocol Consumers
Direct consumers in this checkout’s package manifests include tba-auth, tba-router-relying-party-session, tba-workspace. These edges describe declared dependencies, not protocol-conformance evidence.
Extensions
For tba-protocol-oidc-relying-party, use the source-declared public interfaces (BrowserMemorySession, BrowserStoragePolicy, CAPABILITY_REQUIREMENTS, COMPATIBILITY_PATHS, CURRENT_VERSION, CallbackResult, DiscoveryClient, FEATURES_BY_VERSION, JwksCache, LoginRequest, PkceVerifier, RPConfiguration, RPError, RPSession, RP_ID_TOKEN_CLAIMS) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
Operations and Readiness
Operational Requirements
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.
Health and Observability
This README does not establish a standalone health endpoint for tba-protocol-oidc-relying-party. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
Security and Resource Limits
Apply the input, credential, and resource constraints implemented in package source. The tba-protocol-oidc-relying-party README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
Compatibility
This source version of tba-protocol-oidc-relying-party declares Python >=3.10,<3.16. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
Verification
Tests
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.
Certification Status
No external certification is asserted for tba-protocol-oidc-relying-party by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
Evidence
The README standards CI records mechanical documentation results for its tested commit. The package source and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
FAQ
Why
Why select this package? tba-protocol-oidc-relying-party provides openID Connect relying-party and OAuth client protocol implementation package for the TBA package suite; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
How
How do I start? Install or synchronize the environment under Getting Started, follow the maintained example for tba-protocol-oidc-relying-party, and consult package source for the exact types and signatures involved.
When
When should I validate an upgrade? Recheck tba-protocol-oidc-relying-party whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
Documentation and Related Packages
More Documentation
The repository contribution guide, package source, and manifest provide the supporting context for tba-protocol-oidc-relying-party. The README policy defines the common document structure.
Related Packages
- tigrbl-identity-rp remains a deprecated compatibility package.
- tba-protocol-oauth owns OAuth provider protocol behavior.
- tba-protocol-oidc owns OIDC provider protocol behavior.
Project Links
- Package source
- Package manifest
- LICENSE and NOTICE
- Report an issue
- Package index
- Canonical SSOT registry
- PyPI project
Contributing
How to Contribute
Follow the contribution guide and include a focused example or regression for changes to tba-protocol-oidc-relying-party. Keep package behavior, its documented boundary, and its tests aligned.
Development Setup
Work from the pkgs/050-protocols/tba-protocol-oidc-relying-party checkout. Synchronize its declared development environment with uv, then run the relevant package tests and python -m pytest docs/readme/test_examples.py. The repository’s dedicated README job installs readme-standards==0.1.3 without resolving unrelated runtime packages.
Notes for Maintainers
Edit authored prose directly in this tba-protocol-oidc-relying-party README. Update source examples in docs/readme/, then run readme-standards render --root . --write from the package directory and review the diff. Required headings and generated blocks come from package-guide-v1.
Governance
Ownership and Decision Making
Changes to tba-protocol-oidc-relying-party follow the maintainer review process of tigrbl/tigrbl_auth and its contribution guide. Author attribution remains in the manifest; this README does not assign new publishing or administrative authority.
Standards and Policies
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 050-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.
Lifecycle and Migration
The tba-protocol-oidc-relying-party source version is 0.4.0.dev4. This change standardizes documentation and adds a development-only gate; it does not publish a new runtime version or declare a previously unpublished package released. Preserve explicit deprecation and replacement instructions where present.
License and Attribution
License
Licensed under Apache-2.0. See LICENSE.
Notices
See NOTICE for attribution.
Metadata
Release files for tba-protocol-oidc-relying-party 0.4.0.dev6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tba_protocol_oidc_relying_party-0.4.0.dev6.tar.gz | 26.9 kB | Without provenance | Details for tba_protocol_oidc_relying_party-0.4.0.dev6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tba_protocol_oidc_relying_party-0.4.0.dev6-py3-none-any.whl | Python 3 | none | any | Details for tba_protocol_oidc_relying_party-0.4.0.dev6-py3-none-any.whl |
Total release size: 54.0 kB
Release files / tba_protocol_oidc_relying_party-0.4.0.dev6.tar.gz
| Download URL | tba_protocol_oidc_relying_party-0.4.0.dev6.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fdb953c525b09385f84ea94adc32259881b7fe9e9549cc1ace321927ed4f195
|
|
BLAKE2b-256 checksum How to use checksums |
a0c9e9e4f84aae79b2283c019153a0f8859f056c96933a6799d5c2d0fee639ef
|
| 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.dev6-py3-none-any.whl
| Download URL | tba_protocol_oidc_relying_party-0.4.0.dev6-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f9b0b8d34659c51a35329f40c6bbf88c1f4f526902b476b4722fb4b1ec2457d
|
|
BLAKE2b-256 checksum How to use checksums |
75786e6fa71ef427ccf783a4cdd734937c8e8fd1c6cc8a3200f52056755bd1e4
|
| 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.dev6
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.